From eb9c371c0a8d6e23f01a95386c92a2d25acaad29 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 12 Sep 2022 15:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[Presearch]=20=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 609a79d..2f5fdc8 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -301,17 +301,16 @@ } }, "Presearch": { - "host": "engine.presearch.org", + "host": "presearch.com", "url": "/^\\/search/", - "style": ".items-center.justify-center.text-black, .text-gray-300>div[x-data] {display: none !important;}", + "style": "[x-if^='state.results.pages']+div, .text-gray-300>[x-data] {display: none !important;}", "pager": { "type": 6, - "nextL": ".font-light.border-b-2.border-transparent:last-of-type>a", - "pageE": ".text-gray-300>div, head>script:not([src])", - "replaceE": ".font-light.border-b-2.border-transparent>a", - "scriptT": 2, - "loadTime": 500, - "scrollD": 2500 + "nextL": "a[\\:class*='${state.results.pages[state.results.pages.length-1]']", + "pageE": "[x-for^='(result']~div", + "replaceE": "[x-if^='state.results.pages']+div", + "loadTime": 1000, + "scrollD": 3000 } }, "WebCrawler 搜索": {