您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide watched videos on YouTube
当前为
// Enhance titles - YouTube // // Hide watched videos on YouTube // // https://gf.qytechs.cn/scripts/390633-enhance-titles-youtube // Copyright (C) 2019, Guido Villa // // For instructions on user scripts, see: // https://gf.qytechs.cn/help/installing-user-scripts // // -------------------------------------------------------------------- // // ==UserScript== // @name Enhance titles - YouTube // @description Hide watched videos on YouTube // @version 1.3 // @author guidovilla // @date 05.10.2019 // @copyright 2019, Guido Villa (https://gf.qytechs.cn/users/373199-guido-villa) // @license GPL-3.0-or-later // @homepageURL https://gf.qytechs.cn/scripts/390633-enhance-titles-youtube // @supportURL https://gitlab.com/gv-browser/userscripts/issues // @contributionURL https://tinyurl.com/gv-donate-72 // // @namespace https://gf.qytechs.cn/users/373199-guido-villa // // @match https://www.youtube.com/* // // @require https://gf.qytechs.cn/scripts/390248-entrylist/code/EntryList.js // @grant GM_getValue // @grant GM_setValue // @grant GM_listValues // ==/UserScript== // // -------------------------------------------------------------------- // // To-do (priority: [H]igh, [M]edium, [L]ow): // - [L] hide selective titles? // // Changelog: // ---------- // 2019.10.05 [1.3] Fix completion status appearing later (after ELProcessed) // 2019.10.03 [1.2] Refactor using EntryList library // 2019.09.30 [1.1] First public version, correct @namespace and other headers // 2019.06.17 [1.0] First version // /*jshint -W008 */ /* global EL: readonly */ (function() { 'use strict'; /* BEGIN CONTEXT DEFINITION */ var youtube = EL.newContext('YouTube'); youtube.getPageEntries = function() { return document.querySelectorAll('a#thumbnail'); }; youtube.isValidEntry = function(entry) { var st = entry.querySelector('#overlays'); return !!(st && st.innerHTML); }; youtube.determineType = function(_I_lists, _I_tt, entry) { var st = entry.querySelector('#overlays #progress'); return (st && st.style.width == "100%"); }; youtube.processItem = function(entry, _I_tt, _I_processingType) { entry.style.opacity = .1; }; /* END CONTEXT DEFINITION */ //-------- "main" -------- EL.startup(youtube); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址