Skip to content

Instantly share code, notes, and snippets.

@hsupu
Created February 20, 2020 14:31
Show Gist options
  • Save hsupu/6ac50a6561888608550906cfc9c7f683 to your computer and use it in GitHub Desktop.
Save hsupu/6ac50a6561888608550906cfc9c7f683 to your computer and use it in GitHub Desktop.
尝试屏蔽 CSDN 博文的广告与导流
// ==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