Perpetual pages - powerful auto-pager script. Auto fetching next paginated web pages and inserting into current page for infinite scroll. Support thousands of web sites without any rule.
< Σχολιασμός για τον κώδικα Pagetual
{ "name": "Zoeken met Startpagina en Google", "url": "^https?://startgoogle\\.startpagina\\.nl/.*query=", "pinUrl": true, "history": 0, "nextLinkByUrl": [ "/(search)?\\?(.*)&(query|q)=(\\w+)(&page=(\\d+))?.*", "/search?$2&q=$4&page={$6+1}&start={($6-1)*10}&num=10" ], "pageElement": "#organic-results>.organic", "pagePre": "let lis=[];JSON.parse(response).results.forEach(r=>{let li=`<li><h2><a href='${r.url}' target='_blank'>${r.title}</a></h2><div class='url'>${r.display_url}</div><div class='lines'>${r.snippet}</div></li>`;lis.push(li)});return `<div id='organic-results'><ul class='organic'>${lis.join('')}</ul></div>`;" }
Ios,stay导入,还是没翻页
发现英文可以,但是中文不行。
站内搜索site :第2页会有问题。
就自个儿照着我上面给的改吧,\w只支持字母数字,可以试着改成[^&]。pagePre 不用动,但也可以优化一下,添加 margin-bottom。工作繁忙,没精力细调了
我只有手机啊。那我只能在评论区里面编辑导入了呀。
{ "name": "Zoeken met Startpagina en Google", "url": "^https?://startgoogle\\.startpagina\\.nl/.*query=", "pinUrl": true, "history": 0, "nextLinkByUrl": [ "/(search)?\\?(.*)&(query|q)=([^&]+)(&page=(\\d+))?.*", "/search?$2&q=$4&page={$6+1}&start={($6-1)*10}&num=10" ], "pageElement": "#organic-results>.organic", "pagePre": "let lis=[];JSON.parse(response).results.forEach(r=>{let li=`<li><h2><a href='${r.url}' target='_blank'>${r.title}</a></h2><div class='url'>${r.display_url}</div><div class='lines'>${r.snippet}</div></li>`;lis.push(li)});return `<div id='organic-results'><ul class='organic'>${lis.join('')}</ul></div>`;" }
中文和站内搜索都可以了,很哇塞。
申请
https://startgoogle.startpagina.nl/