anime1换页置顶

anime1换页置顶.

  1. // ==UserScript==
  2. // @name anime1換頁置頂
  3. // @name:zh-CN anime1换页置顶
  4. // @name:zh-TW anime1換頁置頂
  5. // @namespace http://tampermonkey.net/
  6. // @version 1.02
  7. // @description 上一頁,下一頁時自動置頂
  8. // @description:zh-cn anime1换页置顶.
  9. // @description:zh-tw anime1換頁置頂.
  10. // @license MIT
  11. // @author fydra
  12. // @match https://anime1.me/
  13. // @icon https://www.google.com/s2/favicons?sz=64&domain=anime1.me
  14. // @require https://code.jquery.com/jquery-2.1.4.min.js
  15. // @grant none
  16. // ==/UserScript==
  17. (function() {
  18. 'use strict';
  19.  
  20.  
  21. $(document).ready(function(event) {
  22. $("#table-list_next").click(function() { //偵測下一頁按鈕
  23. document.documentElement.scrollTop = 0; //置頂
  24. console.log('下一頁');
  25. });
  26.  
  27. $("#table-list_previous").click(function() { //偵測上一頁按鈕
  28. document.documentElement.scrollTop = 0; //置頂
  29. console.log('上一頁');
  30. });
  31.  
  32. });
  33.  
  34. $(document).click(function(event) {
  35. $("#table-list_next").click(function() { //偵測下一頁按鈕
  36. document.documentElement.scrollTop = 0; //置頂
  37. console.log('下一頁');
  38. });
  39.  
  40. $("#table-list_previous").click(function() { //偵測上一頁按鈕
  41. document.documentElement.scrollTop = 0; //置頂
  42. console.log('上一頁');
  43. });
  44.  
  45. });
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. })();
  53.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址