您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Pause at end when playing playlist
// ==UserScript== // @name Youtube auto pause at end for playlist/watch later // @version 0.1 // @author Tianshen // @description Pause at end when playing playlist // @include *.youtube.*list* // @run-at document-idle // @grant GM_setValue // @grant GM_getValue // @namespace https://gf.qytechs.cn/users/39600 // ==/UserScript== var doc = document; function injectScript(str, src) { var script = doc.createElement("script"); if (str) script.textContent = str; if (src) script.src = src; doc.body.appendChild(script); if (!src) doc.body.removeChild(script); } function pauseatend() { injectScript("function f() {\ var vid = document.getElementById('c4-player') || document.getElementById('movie_player');\ if (vid != null){\ var dur = vid.getDuration();\ if ((dur - vid.getCurrentTime() <= 1) && dur > 0) {\ vid.pauseVideo();\ }\ }\ }\ window.setInterval(f, 1000);\ "); } //================================================================== //main pauseatend();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址