Make NovelUpdates scroll to the chapter list automatically when you click on pagination
当前为
// ==UserScript==
// @name NU Scroll To Chapter List
// @namespace ultrabenosaurus.novelupdates
// @version 0.4
// @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';
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";
}
}
if(document.querySelectorAll('.digg_pagination>a.previous_page').length>0){
document.querySelectorAll('.digg_pagination>a:nth-child(2)')[0].search="pg=1";
}
pages=null;
pLength=null;
i=null;
})();