您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When a video starts, this refreshes the new video immediately as workaround to issue of uBlock Origin Lite not blocking the unwanted content and requiring manual refresh.
// ==UserScript== // @name Refresh youtube videos (uBlock Origin Lite ad workaround) // @namespace http://tampermonkey.net/ // @description When a video starts, this refreshes the new video immediately as workaround to issue of uBlock Origin Lite not blocking the unwanted content and requiring manual refresh. // @version 2024-12-29_3 // @author Xcape // @match https://www.youtube.com/* // @icon https://lh3.googleusercontent.com/lsanoOfx5N_t-7gh5Qg9FGIirVEjdCqalZXyLZYRd5d7Fydm83FQhu4Oq0JmlRyMtyF_LfwuQQZyKRTHs6emnFirsA=s60 // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; let checkID = localStorage.getItem('checkID'); setInterval(() => { const videoID = new URLSearchParams(window.location.search).get('v'); if (videoID !== null) { if (videoID !== checkID) { checkID = videoID; localStorage.setItem('checkID', checkID); setTimeout(() => { location.reload(); }, 500); } } else { localStorage.setItem('checkID', 'blahblah'); } }, 100); })();