您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
有谱么跳过试听六线谱时间
当前为
// ==UserScript== // @name 有谱么脚本 // @version 0.9 // @description 有谱么跳过试听六线谱时间 // @author xxing9199 // @match https://yopu.co/view/* // @grant none // @license MIT // @namespace https://gf.qytechs.cn/users/1060843 // ==/UserScript== (function () { 'use strict'; let PB_FLAG = false; let PB_ELEM; addGUI(); function addGUI() { let gui_section = document.createElement('section'); gui_section.setAttribute('class', 'control'); let gui_note = document.createElement('p'); gui_note.style.cssText = `text-align: center;`; gui_note.innerHTML = `🎉 如失效欢迎请反馈哈!`; /** 前去反馈 链接 */ let gui_feedback = document.createElement('a'); gui_feedback.style.cssText = `text-decoration: none; color: #d63031; display:block; text-align: center;`; gui_feedback.target = '_blank'; gui_feedback.href = 'https://www.cnblogs.com/xxing/p/17327427.html'; gui_feedback.innerText = '🔗 前去反馈 🔗'; /** 播放、暂停按钮 */ let gui_playBtn = document.createElement('button'); gui_playBtn.style.cssText = 'margin-top: 10px'; gui_playBtn.id = 'xxing_pym_pb'; gui_playBtn.setAttribute('size', 'big'); gui_playBtn.setAttribute('theme', 'primary'); gui_playBtn.setAttribute('type', 'button'); gui_playBtn.setAttribute('class', 'svelte-14csrjh block'); gui_playBtn.addEventListener('click', replay); gui_playBtn.innerText = '播放'; gui_section.appendChild(gui_note); gui_section.appendChild(gui_feedback); gui_section.appendChild(gui_playBtn); let base_connet = document.querySelector("#c > div.no-print").lastChild.lastChild; base_connet.appendChild(gui_section); } function replay() { let _t; if (document.querySelector("#c > div.no-print > div.layout.svelte-15g1ex.nier > div.main.svelte-15g1ex > div.panel.svelte-806xjy > div.player-panel.svelte-806xjy > div.right-buttons.svelte-806xjy > button") != null) { PB_ELEM = document.querySelector("#c > div.no-print > div.layout.svelte-15g1ex.nier > div.main.svelte-15g1ex > div.panel.svelte-806xjy > div.player-panel.svelte-806xjy > div.right-buttons.svelte-806xjy > button"); } else { alert("脚本已失效,有谱么版本更新,请点击链接联系作者."); } PB_ELEM.click(); if (!PB_FLAG) { _t = setInterval(() => { PB_ELEM.click(); PB_ELEM.click(); }, 14000); document.querySelector("#xxing_pym_pb").innerHTML = '暂停'; } else { clearInterval(_t); // 修复暂停后避免网页刷新。 _t = setInterval(() => { // console.log("KEEP"); PB_ELEM.click(); setTimeout(() => { PB_ELEM.click(); }, 1); }, 5000); document.querySelector("#xxing_pym_pb").innerHTML = '播放'; } PB_FLAG = !PB_FLAG; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址