【代码】优快云太蛋疼的解决办法

通过Tampermonkey插件自动点击“阅读更多”按钮,并移除优快云博客页面上不必要的元素,如底部工作机会框、分享菜单等,提高阅读体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

打开页面后需要查看更多:
chrome安装tampermonkey插件,执行以下脚本

// ==UserScript==
// @name       优快云自动展开阅读更多及界面简化
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description		如果有阅读更多按钮,将自动点击,去除一些无用元素
// @author       You
// @iconURL			https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=3856144780,3450407977&fm=58
// @match        https://blog.youkuaiyun.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
		var d = document;
		if(d.getElementById('btn-readmore')!=null)
		{
			d.getElementById('btn-readmore').click();								//auto click readmore button if exist
		}
		d.getElementsByClassName('pulllog-box')[0].style.display = '';			//block bottom csdn job oppotunity
		d.getElementsByClassName('meau-list')[0].style.display = 'none'; 		//block share menu
		d.getElementsByClassName('persion_article')[0].style.display = 'none'; //block csdn contack information block
		d.getElementsByClassName('edu-promotion')[0].style.display = 'none';	//block edu ads at the bottom of article
})();

访问速度太慢
打开C:\Windows\System32\drivers\etc\host添加

0.0.0.0 allyes.com
0.0.0.0 google-analysis.com 

移除广告,虽然我已经用Adguard过滤了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值