您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
打造平板看91譜的最好體驗。
当前为
// ==UserScript== // @name 91 Plus M // @namespace https://github.com/DonkeyBear // @version 0.9 // @description 打造平板看91譜的最好體驗。 // @author DonkeyBear // @match https://www.91pu.com.tw/m/* // @match https://www.91pu.com.tw/song/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== let currentUrl = window.location.href; if (currentUrl.match(/\/song\//)) { let sheetId = currentUrl.match(/\/\d*\./)[0].slice(1, -1); let newUrl = `https://www.91pu.com.tw/m/tone.shtml?id=${sheetId}`; window.location.replace(newUrl); } const observer = new MutationObserver(() => { let elementShouldBlock = { // 需要倒數才能關閉的蓋版廣告 modalAd: document.querySelector("#viptoneWindow.window"), // 在頁面最底部的廣告 bottomAd: document.querySelector("#bottomad"), // 最上方提醒升級VIP的廣告 updateVipBar: document.querySelector(".update_vip_bar"), // 譜上的LOGO和浮水印 overlayLogo: document.querySelector(".wmask"), // 彈出式頁尾 footer: document.querySelector("footer"), // 自動滾動頁面捲軸 autoScroll: document.querySelector(".autoscroll"), // 其餘的Google廣告 adsByGoogle: document.querySelectorAll(".adsbygoogle") } for (let selected in elementShouldBlock) { if (elementShouldBlock[selected]) { if (elementShouldBlock[selected].length === undefined) { // Node elementShouldBlock[selected].style.display = "none"; } else { // NodeList for (let elem of elementShouldBlock[selected]) { elem.style.display = "none"; } } } } }); observer.observe(document.body, { childList: true, subtree: true });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址