您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mutes KSI's song "Thick Of It" on YouTube and plays Subway Surfers in the bottom-right corner
// ==UserScript== // @name 🤮Sick Of It - Combination KSI "Thick Of It" Muter & Subway Surfers Player // @namespace https://gf.qytechs.cn/en/users/1306960-viv-vee-media // @version 1.0 // @description Mutes KSI's song "Thick Of It" on YouTube and plays Subway Surfers in the bottom-right corner // @author viv // @match *://www.youtube.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const subwaySurfersURL = "https://www.youtube.com/embed/_bwtEtYQwgc?autoplay=1"; let subwayIframe; function checkTitle() { const video = document.querySelector('video'); const title = document.title.toLowerCase(); if (video) { if (title.includes('ksi') && title.includes('thick of it')) { video.muted = true; if (!subwayIframe) { embedSubwaySurfers(); } } else { video.muted = false; removeSubwaySurfers(); } } } function embedSubwaySurfers() { subwayIframe = document.createElement('iframe'); subwayIframe.src = subwaySurfersURL; subwayIframe.width = "540"; subwayIframe.height = "375"; subwayIframe.style.position = "fixed"; subwayIframe.style.bottom = "10px"; subwayIframe.style.right = "10px"; subwayIframe.style.zIndex = "9999"; subwayIframe.allow = "autoplay"; document.body.appendChild(subwayIframe); } function removeSubwaySurfers() { if (subwayIframe) { subwayIframe.remove(); subwayIframe = null; } } function trackUserMute() { const video = document.querySelector('video'); if (video) { video.addEventListener('volumechange', function() { if (video.muted) { video.mutedByUser = true; } else { video.mutedByUser = false; } }); } } setInterval(checkTitle, 1000); window.addEventListener('load', trackUserMute); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址