From 91b0b06f81084531340afda64f623d408c5875ad Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 28 Apr 2022 17:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Pngtree]=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index d1d7614..9e31f0f 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -1487,6 +1487,22 @@ "bF": "return fun.src_bF(pageE, [0, 'img[data-lazy-src]', 'data-lazy-src'])" } }, + "Pngtree": { + "host": ["pngtree.com","zh.pngtree.com"], + "url": "return (!fun.indexOF('/freepng/') && !fun.indexOF('/freebackground/'))", + "style": "div[class*='-banner'], .COLLECT, .v2-footer, #v2-foot, .transform-login {display: none !important;} img[data-original] {opacity: 1 !important;}", + "pager": { + "type": 6, + "nextL": ".nextPage", + "pageE": "//*[self::div or self::li][@data-id]/parent::*", + "replaceE": ".pageCont", + "loadTime": 200, + "scrollD": 5000 + }, + "function": { + "bF": "return fun.src_bF(pageE)" + } + }, "Unsplash": { "host": "unsplash.com", "url": "fun.isUrlC(); if(fun.indexOF('/s/photos/')){setTimeout((f=fun)=>{f.getXpath(\"//button[text()='Load more photos']\").click();}, 2000)}"