您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
remove AD. and change some styles !
当前为
// ==UserScript== // @name 游民星空去广告 // @namespace http://tampermonkey.net/ // @version 0.41 // @description remove AD. and change some styles ! // @author Wenhan // @match http://*.gamersky.com/ // @grant none // ==/UserScript== (function() { 'use strict'; // 去除黑暗图片背景 document.body.style.background = '#fff'; // 监听所有dom变化 new MutationObserver(function(mutations, observer){ if(document.querySelector('.onlyOneBgtgs')){ document.querySelector('.onlyOneBgtgs').remove(); } // 去除主广告 if(document.querySelector('#ADback')){ document.querySelector('#ADback').remove(); } // 去除弹窗广告 if(document.querySelector('#FuGai')){ document.querySelector('#FuGai').remove(); } if(document.querySelector('#ADcover')){ document.querySelector('#ADcover').remove(); } // 去除右下提示广告 if(document.querySelector('#adTips')){ document.querySelector('#adTips').remove(); } // 去除阴影样式 if(document.querySelector('.Mid')){ document.querySelector(".Mid").style.boxShadow = 'none'; } }).observe(document.querySelector("body"), {childList: true, subtree: true}); })();