您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables 30 seconds timer and removes ad banners on ru.onlinemschool.com (use with Ublock Origin or Adblock Plus)
当前为
// ==UserScript== // @name OMS disable timeout // @namespace http://tampermonkey.net/ // @version 0.3 // @description Disables 30 seconds timer and removes ad banners on ru.onlinemschool.com (use with Ublock Origin or Adblock Plus) // @author hant0508 // @include http://ru.onlinemschool.com/* // @grant none // @ran-at document-idle // ==/UserScript== function f() { var path = "/html/body//div[@id and div [@style and (@onclick and img[@style]) or @style and div[@class and @style]] and @id != \"oms_r_center_2\"]"; var ad = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); if (ad.snapshotLength > 0) clearInterval(timer); oms.ads = true; for (var i = ad.snapshotLength - 1; i >= 0; i--){ var elm = ad.snapshotItem(i); console.log(elm); elm.parentNode.removeChild(elm); } } var timer = window.setInterval(f, 50);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址