您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace specific image on bgm.tv pages
// ==UserScript== // @name BGM.TV Image Replacer // @namespace https://bgm.tv // @version 1.0 // @description Replace specific image on bgm.tv pages // @author Rin // @match https://bgm.tv/group/topic/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function() { if (window.location.href.includes("bgm.tv/group/topic/")) { var images = document.querySelectorAll('img'); images.forEach(function(image) { if (image.src.includes("/img/smiles/tv/102.gif")) { image.src = image.src.replace("/img/smiles/tv/102.gif", "/img/smiles/tv/40.gif"); } }); var elementsWithBg = document.querySelectorAll('[style*=background-image]'); elementsWithBg.forEach(function(element) { var style = window.getComputedStyle(element); var backgroundImage = style.backgroundImage; if (backgroundImage.includes("/img/smiles/tv/102.gif")) { element.style.backgroundImage = backgroundImage.replace("/img/smiles/tv/102.gif", "/img/smiles/tv/40.gif"); } }); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址