Music Tools Helper

移除暗号验证

目前为 2021-04-04 提交的版本。查看 最新版本

// ==UserScript==
// @name         Music Tools Helper
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  移除暗号验证
// @author       PRO-2684
// @icon         https://pro-2684.github.io/icons/32.ico
// @icon64       https://pro-2684.github.io/icons/64.ico
// @match        https://tool.yijingying.com/musictools/
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// ==/UserScript==


(function () {
    'use strict';
    function del() {
        var banner = document.querySelector("body > div.jconfirm.jconfirm-modern.jconfirm-open");
        banner.remove();
        GM_setValue('pop', GM_getValue('pop', 0) + 1);
        GM_setValue('show_tip', GM_getValue('show_tip', true));
        if (GM_getValue('show_tip')){
            alert('已跳过暗号验证')
        };
    };
    function refresh() {
        GM_unregisterMenuCommand(count);
        GM_unregisterMenuCommand(tip);
        count = GM_registerMenuCommand('已跳过' + GM_getValue('pop', 0) + '次');
        tip = GM_registerMenuCommand('是否展示跳过提醒:' + GM_getValue('show_tip', true), clear);
    };
    function clear() {
        GM_setValue('pop', 0);
        alert('已清空次数');
        refresh()
    };
    function reverse() {
        GM_setValue('show_tip', !GM_getValue('show_tip'));
        alert('已切换状态');
        refresh()
    };
    window.setTimeout(function () { del() }, 1000);
    let count = GM_registerMenuCommand('已跳过' + GM_getValue('pop', 0) + '次', clear);
    let tip = GM_registerMenuCommand('是否展示跳过提醒:' + GM_getValue('show_tip', true), reverse);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址