Created
February 20, 2020 14:31
-
-
Save hsupu/6ac50a6561888608550906cfc9c7f683 to your computer and use it in GitHub Desktop.
尝试屏蔽 CSDN 博文的广告与导流
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name anti-csdn-ad-checker | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description csdn sucks! | |
// @author noname | |
// @match https://blog.csdn.net/*/article/details/* | |
// @grant none | |
// @requires https://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// 关闭反广告 | |
$('.adblock').detach(); | |
$('.check-adblock-bg').detach(); | |
var highestIntervalId = setInterval(function () {}); | |
for (var i = 0 ; i < highestIntervalId ; i++) { | |
clearInterval(i); | |
} | |
// 全文可见 | |
$('#article_content').css({ | |
height: "auto", | |
}); | |
$('.hide-article-box').detach(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment