您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
fix inserting works into tracklist when work has apostrophe in title
// ==UserScript== // @name fix insert classical works // @namespace https://gf.qytechs.cn/users/2653 // @version 0.2 // @description fix inserting works into tracklist when work has apostrophe in title // @author thought_house // @match https://rateyourmusic.com/releases/ac* // @grant none // ==/UserScript== (function() { 'use strict'; var searchFrame = document.getElementById("shortcutsearchframe"); searchFrame.onload = function() { var infoboxes = document.getElementById("shortcutsearchframe").contentDocument.getElementsByClassName("infobox"); for (var i = 0; i < infoboxes.length; i++) { var infobox = infoboxes[i]; var workTitle = infobox.getElementsByClassName('infobox_title')[0].innerHTML; if (workTitle.indexOf("'") >= 0) { if (infobox.getAttribute('class').indexOf('child') >= 0) { workTitle = workTitle.replace(/^\d+\. /, ''); } var onclickcode = infobox.children[0].children[0].getAttribute('onclick'); onclickcode = onclickcode.replace(workTitle, workTitle.replace(/'/g, "\\'")); infobox.children[0].children[0].setAttribute('onclick', onclickcode); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址