您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disable the video autoplay at YouTube channel/user home page
当前为
// ==UserScript== // @name s Disable YouTube Channel/User Home Page Video AutoPlay 2.0.16 fork May 2023 bugfix // @namespace DisableYouTubeChannelUserHomePageVideoAutoPlayFork // @version 2.0.16.1 // @license GNU AGPLv3 // @description Disable the video autoplay at YouTube channel/user home page // @match *://*.youtube.com/* // @grant none // @run-at document-start // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // ==/UserScript== // original author jcunews https://gf.qytechs.cn/en/users/85671-jcunews (() => { let xo = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function(mtd, url) { this.url_dyuhpv = url; return xo.apply(this, arguments) }; let xs = XMLHttpRequest.prototype.send, rx = /:\/\/[^\/]+\/(((c(hannel)?|u(ser)?)\/)|@)[^\/]+(\/(about|featured)?)?(\?|$)/, blk; XMLHttpRequest.prototype.send = function(dat) { if (/player\?key=/.test(this.url_dyuhpv) && dat && dat.toUpperCase) { let z, o; try { if ( (o = (o = JSON.parse(dat)).context.client) && (rx.test(o.originalUrl) | ((o = o.mainAppWebInfo) && rx.test(o.graftUrl))) ) blk = true } catch(z) {} } return xs.apply(this, arguments) }; let mp = HTMLMediaElement.prototype.play; HTMLMediaElement.prototype.play = function() { if (blk) throw blk = false; return mp.apply(this, arguments) }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址