// ==UserScript==
// @name (持续更新)CSDN页面浮窗广告完全过滤净化(自动展开|让你专注于文章|不影响功能使用)
// @namespace https://github.com/AdlerED
// @version 1.0.0
var version = "1.0.0";
// @description CSDN页面浮窗广告完全过滤净化 By Adler
// @author Adler
// @connect www.csdn.net
// @include *://*.csdn.net/*
// @require https://code.jquery.com/jquery-1.11.0.min.js
// @note 19-02-26 1.0.0 初版发布
// @downloadURL none
// ==/UserScript==
(function() {
console.log("欢迎, 正在执行CSDN净化插件! PoweredBy Adler WeChat: 1101635162");
var count = 0;
if (count == 0){
console.log("正在进行第一次Kill操作......");
killAll();
}
//赚零钱改为GitChat(仅运行一次)
//var gitChat = $("body").find(".gitChat").eq(0).html();
var gitChat = document.getElementsByClassName("gitChat");
//console.log(gitChat);
gitChat[0].remove();
try {
//gitChat = gitChat.replace("赚零钱", "GitChat");
} catch(err) {}
//$("body").find(".gitChat").eq(0).html(gitChat);
//gitChat[0].outerHTML = gitChat;
//主页右侧的今日推荐
var rightBox = document.getElementsByClassName("right_box");
//rightBox[0].remove();
//setTimeout(function (){
// rightBox[0].remove();
// rightBox[1].remove();
//}, 1000)
//干掉右侧栏,并让左侧栏填充屏幕
$("main").css("width", "100%");
$("aside").remove();
//展开所有内容
document.getElementById("btn-readmore").click();
var starting = setInterval(function(){
count++;
if (count > 50) {
console.log("净化已完成! 请享受绿色的CSDN~");
$("#green").html("已净化");
clearInterval(starting);
} else {
if (count == 5) {
//将猜你在追置顶(观看历史)
console.log("正在置顶观看历史......");
var today = $(".qy-focus-today").prop("outerHTML");
$(".qy-focus-today").remove();
$("#block-CZ").after(today);
$(".qy-index-content").prepend(history);
//所有页脚添加本插件信息
$(".footer-copyright").append("
CSDN净化插件V" + version + "成功执行完毕 By Adler WeChat: 1101635162");
$("#AR_copyright").append("
CSDN净化插件V" + version + "成功执行完毕 By Adler WeChat: 1101635162");
//插件菜单
var menuHead = '