您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
key listener ESC
当前为
// ==UserScript== // @name mashibing next episode control // @namespace http://tampermonkey.net/ // @version 24.12.08.15.49 // @description key listener ESC // @license MIT // @author onionycs // @match https://www.mashibing.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=mashibing.com // @require http://code.jquery.com/jquery-3.x-git.min.js // @grant none // ==/UserScript== (function() { 'use strict'; /* globals jQuery, $, waitForKeyElements */ // Your code here... setTimeout(function() { $(document).ready(function() { $('.text-ellipsis').css('overflow', 'visible'); }); }, 5000); document.addEventListener('keydown', function(event) { if (event.key === 'Escape') { if(document.getElementsByClassName('next-btn').length!=0){ document.getElementsByClassName('next-btn')[1].click(); alert('已经取消自动跳转'); } } if (event.key === ']' || event.key === '】') { document.getElementsByClassName('next-btn')[0].click(); } if (event.key === '[' || event.key === '【') { if($('.sider-container-btn').length==1){ $('.sider-container-btn')[0].click(); }else { if($('.el-icon-arrow-right').length==3){ $('.el-icon-arrow-right')[0].click(); $('.el-icon-arrow-right')[1].click(); }else{ $('.el-icon-arrow-left')[1].click(); } } setTimeout(function() { $(document).ready(function() { $('.text-ellipsis').css('overflow', 'visible'); }); }, 500); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址