Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript==
// @name CSDN去除广告然后全屏
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description try to take over the world!
// @author You
// @match https://blog.csdn.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function del(id){
try{
$(id).remove();
}catch(e){}
}
function css(id,styles){
try{ $('#'+id).css(styles);}catch(e){}
try{ $(id).css(styles);}catch(e){}
}
del('#side,#navigator,#article_ad');
css('main',{
paddingLeft : 0,
width: '97%',
float : 'left'
});
css('article_content',{height:'auto'});
del('.readall_box,.article_next_prev,aside');
setTimeout(function(){
del('#share_box,.meau-gotop-box,.csdn-toolbar,.recommend_list,.comment_look_more');
css('comment_list',{height:'auto'});
del('.pulllog-box');//讨厌的注册条
del('.comments');//无用的注册条
del('iframe');
},900);
// Your code here...
})();