您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Usuwa reklamy na synonim.net.
// ==UserScript== // @name Usuń Reklamy Na Synonim.net // @name:en Remove Ads On Synonim.net // @namespace http://tampermonkey.net/ // @version 1.2 // @description Usuwa reklamy na synonim.net. // @description:en Removes ads on synonim.net. // @author Toni20k5267 // @match https://synonim.net/* // @icon https://www.google.com/s2/favicons?sz=64&domain=synonim.net // @grant none // @license Apache License 2.0 // ==/UserScript== (function() { 'use strict'; console.log('meow meow') //waits till page loaded window.addEventListener('load', () => { console.log('nyaa~') //selects all elements that have the class .adg, which are most ads on synonim.net document.querySelectorAll('.adg').forEach(el => { //removes said element el.style.display = 'none'; console.log('adg rmvd') }); //selects the element of the id iall, which is 1 ad on synonim.net document.querySelectorAll('#iall').forEach(el => { //removes said element el.style.display = 'none'; console.log('iall rmvd') }); //selects the element of the id wtgSticky, which is 1 ad on synonim.net document.querySelectorAll('#wtgSticky').forEach(el => { //removes said element el.style.display = 'none'; console.log('wtg rmvd') }); }); })();