try to take over the world!
// ==UserScript==
// @name csdn博客去广告
// @namespace http://tampermonkey.net/
// @version 1.2
// @description try to take over the world!
// @author tang1jun
// @match https://blog.csdn.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function delad() {
var ad = document.getElementsByClassName('programmer1Box');
console.info('lyj 去广告', ad)
if (ad[0] != undefined) {
ad[0].remove();
console.info("lyj 去广告 OK!")
}
var sidebar = document.getElementsByClassName("csdn-side-toolbar");
console.info("lyj 去sidebar", sidebar);
if (sidebar[0] != undefined) {
sidebar[0].remove();
console.info("lyj 去sidebar OK!")
}
}
// 执行去广告
delad();
})();