您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the "si" parameter from YouTube share links.
当前为
// ==UserScript== // @name Remove YouTube Share Identifier // @name:vi Xóa Định Danh Chia Sẻ YouTube // @namespace https://greasyforks.org/en/users/1240674-anhkhoakz // @version 1.0.1 // @match *://*.youtube.com/watch* // @license GPLv3; https://www.gnu.org/licenses/gpl-3.0.html#license-text // @icon https://i.imgur.com/f1OgZDI.png // @grant none // @description Remove the "si" parameter from YouTube share links. // @description:vi Xóa tham số "SI" khỏi các liên kết chia sẻ YouTube. // @author anhkhoakz; https://www.anhkhoakz.dev/ // ==/UserScript== (()=>{"use strict";const e=new MutationObserver(e=>{const s=e.filter(e=>e.addedNodes[0]&&e.addedNodes[0].tagName==="YT-COPY-LINK-RENDERER").map(e=>e.addedNodes[0]);if(!s.length)return;const t=s[0].querySelector("input#share-url");if(!t)return;const n=t.value.split(/[?&]/).filter(e=>!e.includes("si="));t.value=n.length>1?`${n[0]}?${n.slice(1).join("&")}`:n[0];let o=t.value;const i=()=>{if(!t)return;if(t.value===o)return;const e=t.value.split(/[?&]/).filter(e=>!e.includes("si="));t.value=e.length>1?`${e[0]}?${e.slice(1).join("&")}`:e[0],o=t.value,window.requestAnimationFrame(i)};window.requestAnimationFrame(i)});e.observe(document.documentElement,{childList:!0,subtree:!0})})()