Remove most of the ads via ids
当前为
// ==UserScript==
// @name Adblock - cuberealm.io
// @namespace https://github.com/Thibb1
// @match https://cuberealm.io/*
// @grant none
// @version 1.0
// @author Thibb1
// @description Remove most of the ads via ids
// @license GPL
// ==/UserScript==
const adsIds = ['#videoload', '#videoad', '#divFullscreenLoading'];
const removeEvery = 500;
adsIds.forEach((id)=>document.querySelector(id)?.remove());
const interval = setInterval(()=>{
adsIds.forEach((id)=>document.querySelector(id)?.remove());
document.querySelectorAll('[id^=cuberealm-io').forEach((a)=>a.remove())
document.querySelectorAll('iframe').forEach((a)=>a.remove())
}, removeEvery);