YouTube Ad Skipper

Skip YouTube ad without waiting for 5 sec

目前為 2020-08-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         YouTube Ad Skipper
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Skip YouTube ad without waiting for 5 sec
// @author       eggplants
// @homepage     https://github.com/eggplants
// @match        https://youtube.com/watch/*
// @grant        none
// ==/UserScript==

function clickAdSkipButton(){
    selector = 'ytp-ad-skip-button ytp-button';
    adbtn = document.getElementsByClassName(selector);
    if (adbtn[0]){
        adbtn[0].click();
    }
}
setInterval(1000, clickAdSkipButton());

QingJ © 2025

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