NU Scroll To Chapter List

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

目前為 2020-01-26 提交的版本,檢視 最新版本

// ==UserScript==
// @name         NU Scroll To Chapter List
// @namespace    ultrabenosaurus.novelupdates
// @version      0.2
// @description  Make NovelUpdates scroll to the chapter list automatically when you click on pagination
// @author       Ultrabenosaurus
// @match        https://www.novelupdates.com/series/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    window.onload=function(){
        var pages=document.querySelectorAll('.digg_pagination>a');
        var pLength=pages.length;
        for(var i=0;i<pLength;i++){
            if(pages[i].hash.split("#myTable").length!=2){
                pages[i].hash+="#myTable";
            }
        }
        pages=null;
        pLength=null;
        i=null;
    }
})();