From 8746eaada672fe3fc861bbb49bdc8baeed842a2c Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 22 Mar 2022 12:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E6=97=A0=E8=BF=BD?= =?UTF-8?q?=E6=90=9C=E7=B4=A2]=20=E6=94=AF=E6=8C=81;=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=20[=E7=A5=9E=E9=A9=AC=E6=90=9C=E7=B4=A2]=20=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=9F=9F=E5=90=8D;=20=E4=BC=98=E5=8C=96=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 9 +++++---- other/Autopage/rules.json | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index f1f04d4..bf4b531 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.4.2 +// @version 5.4.3 // @author X.I.U // @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了... // @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ @@ -295,6 +295,7 @@ urlC: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则(需要放在 url: 中,自定义规则的话需要使用 fun.isUrlC()) forceTarget: 强制新标签页打开链接 + noReferer: 获取下一页内容时,不携带 Referer(部分网站携带与不携带可能不一样) hiddenPN: 不显示脚本左下角的页码 history: 添加历史记录 并 修改当前 URL(默认开启,对于不支持的网站要设置为 false) thread: 对于社区类网站,要在 帖子内 的规则中加入这个,用于脚本的 [帖子内自动翻页] 功能(即用户可以选择开启/关闭所有社区类网站帖子内的自动翻页) @@ -2585,7 +2586,7 @@ function: { method: 'GET', overrideMimeType: 'text/html; charset=' + document.charset, headers: { - 'Referer': location.href, + 'Referer': (curSite.noReferer === true) ? '':location.href, 'User-Agent': navigator.userAgent }, timeout: 10000, @@ -2618,7 +2619,7 @@ function: { responseType: type, overrideMimeType: mimeType, headers: { - 'Referer': location.href, + 'Referer': (curSite.noReferer === true) ? '':location.href, 'Content-Type': (method === 'POST') ? 'application/x-www-form-urlencoded':'', 'User-Agent': navigator.userAgent }, @@ -3313,7 +3314,7 @@ function: { }, "这里也可以用中文": { "host": "/\\.ccc\\.com/", - "url": "fun.UrlC(); return (fun.lp() == '/' || fun.indexOF('/s') || fun.isMobile())", + "url": "fun.isUrlC(); return (fun.lp() == '/' || fun.indexOF('/s') || fun.isMobile())", "pager": { "type": 2, "nextL": "#autopbn", diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 718294a..9341adb 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -134,13 +134,27 @@ } }, "神马搜索": { - "host": "m.sm.cn", + "host": ["m.sm.cn","quark.sm.cn"], "url": "/^\\/s/", "pager": { "type": 2, "nextL": "#pager:not(.loading)" } }, + "无追搜索": { + "host": "www.wuzhuiso.com", + "url": "if (fun.isMobile()) {return}; fun.isUrlC(); return (fun.lp() == '/s' && !fun.indexOF('a=image','s'))", + "style": ".so-lazyimg{opacity: 1 !important;} .result {border: none !important;}", + "noReferer": true, + "pager": { + "nextL": "#snext", + "pageE": ".result", + "replaceE": "#page" + }, + "function": { + "bF": "return fun.src_bF(pageE, [0,'img[data-isrc]','data-isrc'])" + } + }, "360 搜索": { "host": "www.so.com", "url": "/^\\/.+/",