Adblock - cuberealm.io

Remove most of the ads via ids

当前为 2024-09-27 提交的版本,查看 最新版本

// ==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);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址