您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当前为
// ==UserScript== // @name Youtube No Resume // @match *://*.youtube.com/watch?* // @run-at document-start // @grant none // @description:en Disables the resume feature in Youtube. // @version 0.0.1.20180409213303 // @namespace https://greasyfork.org/users/179175 // ==/UserScript== function TestUrl() { var href = window.location.href; if (href.search("&t=") != "-1") { if (href.search("&t=1ms") == "-1") { window.location.replace(href.substr(0,href.lastIndexOf('&')) + "&t=1ms"); } } } var fireOnHashChangesToo = true; var pageURLCheckTimer = setInterval ( function () { if ( this.lastPathStr !== location.pathname || this.lastQueryStr !== location.search || (fireOnHashChangesToo && this.lastHashStr !== location.hash) ) { this.lastPathStr = location.pathname; this.lastQueryStr = location.search; this.lastHashStr = location.hash; TestUrl(); } } , 111 ); TestUrl();