Greasy Fork is available in English.

去除360搜索的广告

去除360搜索页面的广告

// ==UserScript==
// @name          去除360搜索的广告
// @description   去除360搜索页面的广告
// @include       https://www.so.com/*
// @version 0.0.1.20190910114528
// @namespace https://greasyfork.org/users/75930
// ==/UserScript==
function hiddenAd(){
    var ad_left = document.getElementById("m-spread-left");
    var ad_bottom = document.getElementById("m-spread-bottom");
    var ad_right1 = document.getElementsByClassName("mh-mediav-wrap mh-js-mediav-slot");
	var ad_right2 = document.getElementById("so_kw-ad");
	var ad_right3 = document.getElementById("mediav-rightbottom");
    if(ad_left || ad_bottom || ad_right1 || ad_right2 || ad_right3){
        ad_left.parentNode.removeChild(ad_left);
		ad_bottom.parentNode.removeChild(ad_bottom);
		ad_right1[0].remove();
		ad_right2.parentNode.removeChild(ad_right2);
		ad_right3.parentNode.removeChild(ad_right3);
    }
}
window.onload=hiddenAd();