您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add button to jump gif each.
当前为
// ==UserScript== // @name jandanJumpGif // @namespace http://jaxer.cc/ // @version 2024-03-22 // @description add button to jump gif each. // @author jaxer // @match https://jandan.net/top // @icon https://www.google.com/s2/favicons?sz=64&domain=jandan.net // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var _gifIdx= 0; function jump(i){ var gifList = $("img[src$=gif]") var length = gifList.size() _gifIdx+=i; if(_gifIdx > length -1){ _gifIdx= 0; } if(_gifIdx < 0){ _gifIdx= length -1; } //var gifTop = $(gifList.get(_gifIdx)).offset().top //$(document).scrollTop(gifTop ); gifList.get(_gifIdx).scrollIntoView({behavior: "smooth"}); } // Your code here... $("#wrapper").append($(`<div class="_jumpgif_prev" style="background-color:#e5e5e5;border-radius:50%;bottom:110px;color:#fff;height:40px;position:fixed;width:40px;z-index:3;margin-left:1000px;text-align:center;user-select:none;cursor:pointer;"> GIF 上个</div> <div class="_jumpgif_next" style="background-color:#e5e5e5;border-radius:50%;bottom:60px;color:#fff;height:40px;position:fixed;width:40px;z-index:3;margin-left:1000px;text-align:center;user-select:none;cursor:pointer;"> GIF 下个</div>`)) $('._jumpgif_prev').on("click", function(){jump(-1)}) $('._jumpgif_next').on("click", function(){jump(1)}) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址