您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables yalb premium buttons
当前为
// ==UserScript== // @name yalb Unlocker // @namespace https://gf.qytechs.cn/scripts/400929-yalb-unlocker // @version 0.2 // @description Enables yalb premium buttons // @author Djamana // @match https://*.yalp.io/chords/* // @grant none // ==/UserScript== 'use strict'; // Testpage: // https://yalp.io/chords/gerhard-schoene-der-laden-efc3 function RestoreButtonIDs() { debugger // We are logged in // That will enable speed buttons logged = true $("#beats_chords_container").height( 1280 ) var buttons_locked = $("[title].notify-premium") console.log ( buttons_locked.length + " premium buttons found." ) //newID = buttons_locked.getAttribute("data-alert") //newID = newID.match ("(?:unlimited-)(.*)(?:-alert)") [1] buttons_locked.removeAttr("data-alert" ) buttons_locked.removeAttr("data-toggle") buttons_locked.removeAttr("data-target") buttons_locked.removeClass("notify-premium") var newID_Translator = { "Transpose up" : "transpose-plus" , "Transpose down" : "transpose-minus" , "Print pdf" : ".print-grid" , "Loop song" : "loop" , "Start tuner" : "download-midi" } var newID = buttons_locked.attr("aria-label") buttons_locked.each( function() { try { var button_label = $( this ).attr("aria-label") newID = newID_Translator[ button_label ] this.id = newID console.log ( "NewID: #" + newID + " <= '" + button_label + "'") } catch (exception) { console.warn('initialize.exception', exception); } }); // it is important to trigger document_ready handler of yalb which will connect eventhandler to the buttons if (!$(document).hasClass("ready")) { $(document).triggerHandler("ready"); $(document).addClass("ready") } } (function() { debugger // RestoreButtonIDs() $( RestoreButtonIDs ) //$(document).ready( RestoreButtonIDs ) //$(document).on("ready", RestoreButtonIDs) // Your code here... //$("#expand").click(function() { //} })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址