您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes a severely broken UI flaw in YouTube by removing the annoying and unnecessary "(X)" from page titles. Seriously, I have 15 tabs in a row showing "(1) ...", obscuring the actual page titles. This is just stupid.
当前为
// ==UserScript== // @name YouTube Title Fixer // @description Fixes a severely broken UI flaw in YouTube by removing the annoying and unnecessary "(X)" from page titles. Seriously, I have 15 tabs in a row showing "(1) ...", obscuring the actual page titles. This is just stupid. // @author Braden Best // @namespace bradenscode.nogit // @version 1.0.0 // @match *://*.youtube.com/* // ==/UserScript== /* * = API = * `youtube_title_fixer` is an object containing the following functions: * * kill kill the loop * init manually start the loop * * You can use this interface to terminate and restart the loop for whatever reason. */ const youtube_title_fixer = (function(){ let loop; function fixit(){ let pattern = /\(\d+\)\s+/; if(document.title.match(pattern) !== null) document.title = document.title.replace(pattern, ""); } function kill(){ clearInterval(loop); } function init(){ loop = setInterval(fixit, 1000); } init(); return { kill, init }; }());