您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically clicks the Skip Ad button on Knolix ads page
// ==UserScript== // @name Knolix Auto Skip Ad // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically clicks the Skip Ad button on Knolix ads page // @author Rubystance // @license MIT // @match https://ads.knolix.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function triggerClick(element){ if(!element) return; let event = new MouseEvent('click', { view: window, bubbles: true, cancelable: true }); element.dispatchEvent(event); } function skipAd(){ let skipBtn = document.querySelector("#skip_button"); if(skipBtn){ triggerClick(skipBtn); console.log("[Tampermonkey] Skip Ad button clicked!"); } else { console.log("[Tampermonkey] Skip Ad button not found yet, retrying..."); } } let interval = setInterval(()=>{ skipAd(); if(document.querySelector("#skip_button") === null){ clearInterval(interval); } }, 1000); })();