您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自動的にしおりを差し込む(おせっかい)システム。
当前为
// ==UserScript== // @name 自動しおり for 小説を読もう // @namespace http://tampermonkey.net/ // @version 0.1 // @description 自動的にしおりを差し込む(おせっかい)システム。 // @author Velgail // @include http://ncode.syosetu.com/* // @include http://novel*.syosetu.com/* // @grant none // ==/UserScript== function setD(){ var js = document.createElement('script'); var head = (document.head) ? document.head : document.querySelector('head'); js.innerHTML=[ '$(window).on("scroll", function() {', 'var apoint;', '$("a[href=\'javascript:void(0)\'").each(function(){if($(this).html()==="しおりを挿む"){apoint=$(this)}});', 'var scrollPosition = $(window).height() + $(window).scrollTop();', 'if (scrollPosition > apoint.offset().top+100) {', 'apoint.trigger("click");;', '}else{', '}', '});'].join("\n"); head.appendChild(js); } setD();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址