Skip to content

Commit a9ef571

Browse files
committed
Update pagetual.user.js
1 parent 78ea4b6 commit a9ef571

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Pagetual/pagetual.user.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// @name:it Pagetual
1111
// @name:ko 東方永頁機
1212
// @namespace hoothin
13-
// @version 1.0.20
13+
// @version 1.0.21
1414
// @description Simply auto loading paginated web pages
1515
// @description:zh-CN 自动翻页
1616
// @description:zh-TW 自動翻頁
@@ -95,6 +95,8 @@
9595
// @exclude *://www.youtube.com/watch*
9696
// @exclude *://baike.baidu.com/*
9797
// @exclude *://*.instagram.com/*
98+
// @exclude *://pagetual.hoothin.com/*
99+
// @exclude *://hoothin.github.io/PagetualGuide/*
98100
// ==/UserScript==
99101

100102
(function() {
@@ -2045,9 +2047,9 @@
20452047
function nextPage(){
20462048
if(isPause || isLoading)return;
20472049
let nextLink=ruleParser.nextLinkHref;
2048-
let insert;
2049-
if(nextLink)insert=ruleParser.getInsert();
2050-
if(nextLink && insert){
2050+
if(!nextLink)return;
2051+
let insert=ruleParser.getInsert();
2052+
if(insert){
20512053
let isJs=/^(javascript|#)/.test(nextLink.replace(location.href,""));
20522054
if(location.protocol=="https:" && /^http:/.test(nextLink)){
20532055
nextLink=nextLink.replace(/^http/,"https");

0 commit comments

Comments
 (0)