您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
屏蔽洛谷的广告
当前为
// ==UserScript== // @name 洛谷广告屏蔽 // @namespace http://tampermonkey.net/ // @version 0.5 // @description 屏蔽洛谷的广告 // @author songhongyi // @match https://www.luogu.com.cn/problem/* // @match https://www.luogu.com.cn/contest/* // @match https://www.luogu.com.cn/training/* // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; var document=unsafeWindow.document; window.onload=function(){setTimeout(function() { var buttons =document.getElementsByClassName("lfe-form-sz-small")[0]; if (buttons) { buttons.click(); console.log("广告已经消除"); } },500)} // Your code here... })();