您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Skips ads automatically
当前为
// ==UserScript== // @name YouTube - Ad Skip // @version 1.0 // @description Skips ads automatically // @author Bobocato // @match https://www.youtube.com/* // @grant none // @namespace https://greatest.deepsurf.us/users/167089 // ==/UserScript== const equalText = "Überspringen"; function skipAd(){ console.log("Tried to skip a ad"); if(document.getElementsByClassName("videoAdUiSkipButton").length > 0){ if(document.getElementsByClassName("videoAdUiSkipButton")[0].childNodes[0].textContent === equalText){ document.getElementsByClassName("videoAdUiSkipButton")[0].click(); } else { setTimeout(skipAd(), 1000); } } } (function() { 'use strict'; setInterval(function (){ if(window.location.href.substring(0,30) == "https://www.youtube.com/watch?"){ skipAd(); } }, 2500); })();