您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Cascada Automatica;bindea la tecla derecha para pasar automaticamente de pagina
当前为
// ==UserScript== // @name Tmofans // @namespace http://tampermonkey.net/ // @version 0.1 // @description Cascada Automatica;bindea la tecla derecha para pasar automaticamente de pagina // @author You // @match *tmofans.com/viewer/* // @grant none // ==/UserScript== (function() { var documenturl = document.URL; if(documenturl.includes('paginated')){ window.open(documenturl.split('/').slice(0,5).join('/') +'/cascade','_self'); } // Your code here... })(); $(document).keydown(function(e) { switch(e.which) { case 39: // right var code = document.getElementsByClassName('col-6 col-sm-2 order-2 order-sm-3 chapter-arrow chapter-next')[0].children[0].outerHTML.split('>')[0].split(' ')[3].split('=')[1]; var ncode = code.replace(/^"(.*)"$/, '$1'); var getf =$('script')[21].text.split(';')[10].split('{')[3].split('(')[0].replace(/\s+/g, '').split('_')[1]; postfuc(ncode,getf); console.log(ncode); window.open( window.location.href,'_self'); break; case 37: // left var left = document.getElementsByClassName('col-6 col-sm-2 order-1 order-sm-1 chapter-arrow chapter-prev')[0].children[0].outerHTML.split('>')[0].split(' ')[3].split('=')[1]; var leftc = left.replace(/^"(.*)"$/, '$1'); var getlft =$('script')[21].text.split(';')[10].split('{')[3].split('(')[0].replace(/\s+/g, '').split('_')[1]; postfuc(leftc,getlft); console.log(ncode); window.open( window.location.href,'_self'); break; default: return; // exit this handler for other keys } e.preventDefault(); // prevent the default action (scroll / move caret) }); function postfuc(code,stringheader) { $.ajax({ beforeSend: function (request) { request.setRequestHeader(stringheader, stringheader); }, url: 'https://tmofans.com/5e09bc2e/:UPLOAD_ID'.replace(':UPLOAD_ID',code), type: 'POST', success: function (response) { window.location.href = response; }, }); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址