csdn自动展开+去广告+净化剪切板+免登陆(如有侵权,立即删博)
对于csdn的广告大家想必......又没钱充VIP,怎么办,下面是脚本源码:
重要的事说三遍:如有侵权,立即删除!如有侵权,立即删除!如有侵权,立即删除!
// ==UserScript==
// @name CSDN自动展开+去广告+净化剪贴板+免登陆
// @namespace http://tampermonkey.net/
// @version 1.2.7
// @description ITeye CSDN自动展开阅读,可以将剪贴板的推广信息去除,去除大多数广告。
// @author gorgias
// @match *://blog.csdn.net/*/article/details/*
// @match *://bbs.csdn.net/topics/*
// @match *://*.iteye.com/blog/*
// @grant none
// @icon https://csdnimg.cn/public/favicon.ico
// @run-at document-end
// ==/UserScript==
// 根据网速自己设置时间间隔
var interval = 3000;
var sideInterval = 4000;
var bbsInterval = 3000; // 在ADBlock之后运行
var iteyeInterval = 100;
(function () {
'use strict';
var currentURL = window.location.href;
var blog = /article/;
var bbs = /topics/;
var iteye = /iteye/;
//若为CSDN论坛,则:
if(bbs.test(currentURL)){
setTimeout(function () {
$(".js_show_topic").click();
document.getElementsByClassName("pulllog-box")[0].remove(); // 底部广告
$(".mediav_ad").remove(); // 帖子尾部广告
$(".post_recommend").remove(); // 帖子内[CSDN推荐]
}, bbsInterval);
}else if (blog.test(currentURL)){
if (document.getElementById("btn-readmore")){
document.getElementById("btn-readmore").click();
localStorage.setItem("anonymousUserLimit", "");
} //自动展开
csdn.copyright.init("", "", ""); //去除剪贴板劫持
setTimeout(function () {
document.getElementsByClassName("csdn-tracking-statistics mb8 box-shadow")[0].remove(); //左上广告
document.getElementById("asideFooter").remove();
document.getElementById("adContent").remove();
document.getElementsByClassName("p4course_target")[0].remove();
document.getElementsByClassName("bdsharebuttonbox")[0].remove();
document.getElementsByClassName("vip-caise")[0].remove();
}, interval);
setTimeout(function () {
$("div[id^='dmp_ad']")[0].remove();
document.getElementsByClassName("fourth_column")[0].remove();
}, sideInterval);
setTimeout(function () {
document.getElementsByClassName("pulllog-box")[0].remove(); // 底部广告
var recommendObj = document.getElementsByClassName("recommend-fixed-box")[0].getElementsByClassName("right-item");
for (var h = (recommendObj.length - 1); h>=0; h--) {
if (recommendObj[h].tagName == "DIV") {
recommendObj[h].remove();
}
}
document.getElementsByClassName("p4course_target")[0].remove();
}, sideInterval);
setTimeout(function () {
var hot = document.getElementsByClassName("type_hot_word");
var recommend = document.getElementsByClassName("recommend-ad-box");
for (var i = (hot.length - 1); i >= 0; i--) {
hot[i].remove();
}
for (var j = (recommend.length - 1); j >= 0; j--) {
recommend[j].remove();
}
document.getElementsByClassName("fourth_column")[0].remove();
}, sideInterval);
setTimeout(function () {
document.getElementById("kp_box_476").remove();
}, 5000);
} else if (iteye.test(currentURL)) {
setInterval(function(){
document.getElementById('btn-readmore').click();
}, iteyeInterval);
setTimeout(function () {
document.getElementsByClassName("blog-sidebar")[0].remove();
document.getElementById('main').style.width = '1000px';
}, sideInterval);
}
})();
csdn自动展开+去广告+净化剪切板+免登陆(如有侵权,立即删博)的更多相关文章
- JS脚本实现CSDN免登陆免关闭广告插件自动展开“阅读更多”内容
最近在CSDN查资料,总是弹出以下弹窗,然后就自动跳转到登录页面,蛋疼! 于是重新捣腾了一下,修改了原来的脚本,最新的脚本代码如下: 温馨提示:在打开CSDN页面后立刻执行以下脚本即可免登陆免关闭广告 ...
- Chrome浏览器读写系统剪切板
IE浏览器支持直接读写剪切板内容: window.clipboardData.clearData(); window.clipboardData.setData('Text', 'abcd'); 但是 ...
- 快看!❤️又一超实用浏览器插件!常用网站自动整合,JSON格式化,CSDN全站去广告!多种工具一键调用。开发者的福音!
其实这个插件才出来的时候博主也下载了使用过,并没有什么亮点,那时候甚至觉得有点多余,因为CSDN全站去广告啥的,早就安装了油猴脚本,广告?不存在的嘿嘿.. 就在前几天看见CSDN的活动在推荐这款插件, ...
- openwrt下部署adbyby去广告大师 免luci 带自启动,自动开启透明代理
最近朋友送了个360老路由器 C301,于是乎就掉进了智能路由器的坑, 玩智能路由器第一件事一定是去广告, 要么怎么对得起智能路由器- -! 路由器去广告当然首推广告屏蔽大师 www.adbyby.c ...
- CSDN去广告插件
因为避免不了与代码打交道,所以经常要上网搜代码,一般搜索到的资源都指向了CSDN,然而,好好的一篇博文,上面有很多广告,看着很不舒服,冲vip是不可能的,穷的的要死,怎么办呢?写个插件把! 去广告原理 ...
- WPF剪切板问题-OpenClipboard HRESULT:0x800401D0 (CLIPBRD_E_CANT_OPEN))
WPF剪切板问题-OpenClipboard HRESULT:0x800401D0 (CLIPBRD_E_CANT_OPEN)) 最近碰到一个问题,需要弄个小工具来解决.刚好接触到WPF, ...
- Javascript操作剪切板数据(支持IE、Chrome、360、搜狗),亲测!
clipboarddata只能在IE浏览器中使用,在chrome下会提示对象未定义!以下的方法支持IE.Chrome.360.搜狗等浏览器,其它浏览器还未验证. <!DOCTYPE html&g ...
- Android 高仿UC浏览器监控剪切板弹出悬浮窗功能
UC浏览器应该是android手机里 最流行的浏览器之一了,他们有一个功能 相信大家都体验过,就是如果你复制了什么文字,(在其他app中 复制也有这个效果!,所以能猜到肯定是监控了剪切板),就会弹出一 ...
- 对c#剪切板Clipboard占用的问题一点解决方法
以前在百度写的文档,转移到此处 前几天做一个程序,其中有一个剪切板的操作,具体代码: Clipboard.SetText(“ABC”); 来完成一个复制字符串的操作. 自己调试通过,完全正常,然后就交 ...
随机推荐
- python处理txt文件的一种情况
在txt文本中,以换行符作为标记分段处理txt文件中的内容的方法: with open(path, 'r', encoding='utf-8') as f: for line in f: if lin ...
- JS事件派发器EventEmitter
原文地址:http://zhangyiheng.com/blog/articles/js_event_mitter.html 需求 随着Browser客户端JS越来越复杂,MVC(Client端)设计 ...
- springMVC源代码阅读之servlet部分<一>servlet部分详解
[一]servlet的概念
- 洛谷P2983 [USACO10FEB]购买巧克力Chocolate Buying
题目描述 Bessie and the herd love chocolate so Farmer John is buying them some. The Bovine Chocolate Sto ...
- std::ostringstream 转std::string
http://www.cplusplus.com/reference/sstream/ostringstream/ https://en.cppreference.com/w/cpp/io/basic ...
- 虚拟机ubuntu和windows共享文件
设置虚拟机ubuntu和windows共享文件(方便复制文件到本机) (需要安装samba) 登陆ubuntu系统后,点击左边的文件夹.右击新建个文件夹. 设置为共享 ubuntu会提示你 ...
- iOS有用的三方库和高效工具记录
DKNightVersion https://github.com/Draveness/DKNightVersion#podfile 用来为APP添加夜间模式和换肤功能
- 程序员必备,C#各类项目、开源项目插件资料收藏
一.AOP框架 Encase 是C#编写开发的为.NET平台提供的AOP框架.Encase独特的提供了把方面(aspects)部署到运行时代码,而其它AOP框架依赖配置文件的方式.这种部署方面 ...
- C++ com
http://www.cnblogs.com/hlxs/p/3783920.html 昨天看了<COM本质论>的第一章"COM是一个更好的C++",觉得很有必要做一些笔 ...
- poj1088(記憶化搜索)
題目鏈接:http://poj.org/problem?id=1088 題意:中文題誒- 思路:dfs,不過直接dfs因該會超時,那我們給他加個記錄路徑就好了... 代碼: #include < ...