您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Prevents Autoplay in embedded Twitch Players
// ==UserScript== // @name Twitch Prevent Autoplay // @icon https://www.twitch.tv/favicon.ico // @namespace https://github.com/TheTimmaeh/Twitch-Prevent-Autoplay // @version 0.2 // @description Prevents Autoplay in embedded Twitch Players // @author TheTimmaeh // @match *://player.twitch.tv/* // @grant none // @supportURL https://github.com/TheTimmaeh/Twitch-Prevent-Autoplay // ==/UserScript== // Initialize GET Object var get = {}; // Read GET Parameters var parameters = document.location.search.substr(1, document.location.search.length).split('&'); // Fill GET Object with GET Parameters for(var i = 0; i <= parameters.length; i++) if(typeof parameters[i] === 'string' && parameters[i].length > 1) get[parameters[i].split('=')[0]] = parameters[i].split('=')[1] || null; // Check for Video Source if(typeof get.channel !== 'undefined' || typeof get.video !== 'undefined' || typeof get.collection !== 'undefined'){ // Check for Autoplay Parameter if(typeof get.autoplay === 'undefined' || get.autoplay == 'true'){ // Set Autoplay get.autoplay = false; // Build new iFrame URL var newurl = window.location.href.replace(window.location.search, '') + '?'; // Add Parameters to iFrame URL for(var parameter in get) newurl += parameter + '=' + get[parameter] + '&'; // Redirect to new iFrame URL document.location.href = newurl; } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址