您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为煎蛋jandan.net/pic提供跳转按钮,输入数字跳转到指定页码
当前为
// ==UserScript== // @name 煎蛋无聊图跳转按钮 // @description 为煎蛋jandan.net/pic提供跳转按钮,输入数字跳转到指定页码 // @namespace http://jandan.net/pic // @version 0.1 // @description try to take over the world! // @author whr // @match http://jandan.net/pic* // @icon http://cdn.jandan.net/static/img/favicon.ico // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... //debugger function goIndex() { var index_num = $("#index").val(); if (!$.isNumeric(index_num)) { return; } var date = new Date().toJSON().substring(0,10).replaceAll('-',''); var index_str = date+'-'+index_num; index_str = btoa(index_str); var index_href = 'http://jandan.net/pic/'+index_str location.href=index_href } var html_input ='<input id="index" maxlength="4" style="width: 56px;height: 25px;outline: none;color: #AAA;border: 1px solid #e5e5e5;text-align: center;" >' var html_go = '<a id="go_index">跳转</a>' $(".cp-pagenavi").append(html_input); $(".cp-pagenavi").append(html_go); $("#go_index").click(goIndex); $("#index").keydown(function(e){ if(e.key=="Enter"){goIndex()} }) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址