您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Expands composition information in the IMSLP library.
当前为
// ==UserScript== // @name IMSLP Expand Composition Information // @namespace https://github.com/Enchoseon/enchos-assorted-userscripts/raw/main/imslp-expand-composition-information.user.js // @version 1.0.3 // @description Expands composition information in the IMSLP library. // @author Enchoseon // @include *imslp.org* // @run-at document-end // @grant none // ==/UserScript== (function() { "use strict"; // ============================== // Expand Composition Information // ============================== expandCompositionInformation(); document.getElementById("cathassecselp1").addEventListener("click", function (event) { expandCompositionInformation(); }, true); function expandCompositionInformation() { Object.values(document.getElementById("mw-pages").getElementsByTagName("li")).forEach((elem) => { elem.dispatchEvent(new Event("mouseover")); window.addEventListener("mouseout", function (event) { event.stopPropagation(); }, true); }); } // ============ // Style Tweaks // ============ const css = ` .showHSList a { font-weight: bold; } `; var s = document.createElement("style"); s.setAttribute("type", "text/css"); s.appendChild(document.createTextNode(css)); document.getElementsByTagName("head")[0].appendChild(s); })();