NU Scroll To Chapter List

Make NovelUpdates scroll to the chapter list automatically when you click on pagination

当前为 2020-01-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name NU Scroll To Chapter List
  3. // @namespace ultrabenosaurus.novelupdates.scrollToChapters
  4. // @version 0.1
  5. // @description Make NovelUpdates scroll to the chapter list automatically when you click on pagination
  6. // @author Ultrabenosaurus
  7. // @match https://www.novelupdates.com/series/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var pages=document.querySelectorAll('.digg_pagination>a');
  15. var pLength=pages.length;
  16. for(var i=0;i<pLength;i++){
  17. if(pages[i].hash.split("#myTable").length!=2){
  18. pages[i].hash+="#myTable";
  19. }
  20. }
  21. pages=null;
  22. pLength=null;
  23. i=null;
  24. })();