您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fully replaces Twitch's video player with Bajindo's Kick stream, ensuring video loads correctly.
// ==UserScript== // @name Replace Twitch Player with Kick (Bajindo Only) // @namespace https://kick.com/ // @version 2.0 // @description Fully replaces Twitch's video player with Bajindo's Kick stream, ensuring video loads correctly. // @author YourName // @match https://www.twitch.tv/bajindo // @grant GM_addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; const kickUsername = "bajindo"; // Kick streamer username function replaceTwitchWithKick() { // Find Twitch player area const twitchVideoContainer = document.querySelector('div[data-a-target="video-player"]'); if (!twitchVideoContainer) return; // Prevent multiple replacements if (document.getElementById('kick-embed-container')) return; // Remove all existing Twitch player elements twitchVideoContainer.innerHTML = ''; // Ensure the container is properly sized twitchVideoContainer.style.display = "flex"; twitchVideoContainer.style.justifyContent = "center"; twitchVideoContainer.style.alignItems = "center"; twitchVideoContainer.style.width = "100%"; twitchVideoContainer.style.height = "100%"; // Create Kick iframe const kickEmbed = document.createElement('iframe'); kickEmbed.id = 'kick-embed-container'; kickEmbed.src = `https://player.kick.com/${kickUsername}`; kickEmbed.allowFullscreen = true; // Force full fit kickEmbed.style.width = "100%"; kickEmbed.style.height = "100%"; kickEmbed.style.border = "none"; // Insert Kick iframe twitchVideoContainer.appendChild(kickEmbed); } // Run the function once Twitch loads setTimeout(replaceTwitchWithKick, 3000); // Observe Twitch’s dynamic changes to replace player when needed const observer = new MutationObserver(replaceTwitchWithKick); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址