From 53a05739f5e7193e9b8df115e4ccab648009c6b7 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 21 Jul 2024 17:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[NGA]=20=E5=9C=A8=20Firefo?= =?UTF-8?q?x=20=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=8A=B6=E6=80=81=E4=B8=8B=E6=97=A0=E6=B3=95=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 89c91f2..972de5d 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -557,8 +557,9 @@ }, "NGA": { "host": ["bbs.nga.cn","ngabbs.com","nga.178.com","g.nga.cn"], - "url": "fun.isUrlC(); return (fun.lp() == '/thread.php')", + "url": "fun.isUrlC(); if(!window.__APPEMBED && !window.cookieInterval){window.cookieInterval = setInterval(()=>{if (!window.__APPEMBED) {document.cookie = 'guestJs=' + fun.getCookie('guestJs').replace(/^\\d+/,parseInt(new Date().getTime()/1000)) + ';domain=' + location.host + ';expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/;samesite=none;secure=false';document.cookie = 'lastvisit=' + parseInt(new Date().getTime()/1000+123) + ';samesite=none;secure=false;domain=' + location.host;};},1000)}; return (fun.lp() == '/thread.php')", "iframe": true, + "gmxhr": true, "pager": { "nextL": "#pagebbtm a[title='下一页']", "pageE": "#topicrows>tbody, #topicrows>script", @@ -571,10 +572,11 @@ }, "NGA - 帖子内": { "host": ["bbs.nga.cn","ngabbs.com","nga.178.com","g.nga.cn"], - "url": "return (fun.lp() == '/read.php')", + "url": "/^\\/read\\.php", "iframe": true, "history": false, "thread": true, + "gmxhr": true, "retry": 1000, "pager": { "nextL": "#pagebbtm a[title*='下一页']",