您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去白条,右键下一话
// ==UserScript== // @name 古古漫画插件 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 去白条,右键下一话 // @author xiantong.zou // @include *://www.gugu5.com* // @grant none // ==/UserScript== (function() { 'use strict'; console.log("GuGu_Comic run!"); //隐藏“白带” var pic = document.getElementById('mypic_k0'); if(pic != null){ //console.log("GuGu_Comic hide mypic_k0!"); pic.style.visibility="hidden"; } var nextHref = null; document.body.addEventListener('DOMSubtreeModified', function () { //console.log("body changed!") var nextDlg = document.getElementById('msgTxt'); if(nextDlg != null && nextHref == null){ console.log("msgTxt open"); for(var el of nextDlg.childNodes){ //console.log("find ele",el); if(el.href != null){ nextHref = el.href; var timerId = null; timerId = setInterval(function(){ el.innerHTML = el.innerHTML + "(→:下一话)"; clearInterval(timerId); },10); break; } } }else if(nextDlg == null && nextHref != null){ console.log("msgTxt close"); nextHref = null; } }, false); //按键监听 var oldOnKeyDown = document.onkeydown; document.onkeydown=function(event){ var e = event || window.event || arguments.callee.caller.arguments[0]; if(e && e.keyCode==39){ // //keyCode 39 = Right //支持右键下一话 if(nextHref != null){ window.location.href = nextHref; } //alert("enter!"); } if(oldOnKeyDown != null){ oldOnKeyDown(event); } }; // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址