您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove ads from surviv.io
- // ==UserScript==
- // @name surviv.io Ad Blocker
- // @namespace https://greasyfork.org/en/users/223360
- // @version 1.0.0
- // @description Remove ads from surviv.io
- // @author Zennar
- // @match *://surviv.io/*
- // @grant none
- // @icon http://surviv.io/favicon.ico
- // @run-at document-start
- // ==/UserScript==
- 'use strict';
- //Make things easy
- function delAds(eID){
- if (document.getElementById(eID)){
- document.getElementById(eID).remove();
- }
- }
- //Do the job
- setInterval(function() {
- var adsA=document.getElementsByClassName("ad-block-leaderboard-bottom")[0];
- delAds("start-top-left");
- delAds("leaderboard-front");
- delAds("ad-block-left");
- delAds("start-bottom-left");
- delAds("adunit");
- delAds("ui-stats-ad-container-desktop");
- delAds("surviv-io_728x90")
- if(adsA){
- adsA.remove();
- }
- },1000);