東方永頁機

終極自動翻頁 - 加載並拼接下一分頁內容至當前頁尾,智能適配任意網頁

< 腳本東方永頁機的回應

評論:正評 - 腳本一切正常

§
發表於:2022-02-10

伟大的工作! 对不起,英语是我的语言。我想知道你是否可以给我一个例子来制定规则 playstation.com
我已经检查了你的 https://github.com/hoothin/UserScripts/tree/master/Pagetual#rules
并试图比较您的示例 yande.re 但不理解规则。我希望能弄清楚,但我想我会寻求你的帮助,也许学会为自己做另一个。再次感谢

hoothin作者
§
發表於:2022-02-10
  {
    "name":"playstation",
    "action":1,
    "css":".psw-visually-hide{opacity:1!important}.pagetual_loading{display:none!important}",
    "wait":2000,
    "url":"^https://store\\.playstation\\.com/.*/\\d+$",
    "pageElement":"ul.psw-grid-list",
    "nextLinkByUrl":["(.*/)(\\d+)$","$1{$2+1}"]
  }

Update the script and try this

hoothin作者
§
發表於:2022-02-10

Let me know if you have any question

§
發表於:2022-02-10

感谢我添加的重播

customRulesInput.placeholder=`[\n {\n "name":"yande",\n "action":"0",\n "url":"^https:\/\/yande\\.re\/",\n "pageElement":"ul#post-list-posts>li",\n "nextLink":"a.next_page",\n "css":".javascript-hide {display: inline-block !important;}"\n },\n {\n "name":"playstation",\n "action":"1",\n "css":".psw-visually-hide{opacity:1!important}.pagetual_loading{display:none!important}",\n "wait":2000,\n "url":"^https://store\\.playstation\\.com/.*/\\d+$",\n "pageElement":"ul.psw-grid-list",\n "nextLinkByUrl":["(.*/)(\\d+)$","$1{$2+1}"]\n }\n]`;

我想也许我做错了什么,因为它对我不起作用。谢谢

hoothin作者
§
發表於:2022-02-10

You should open the config page and paste it to the textarea.

§
發表於:2022-02-10

You should open the config page and paste it to the textarea.

Appreciate your script and help. Having issue on playstation.com when scrolling down towards bottom of current page the page will hop/scroll all the way to bottom and loose track of current title I was looking at. I'll have to scroll up and sometimes that triggers the next page load. When you get a chance can you take a look (no rush) thank you

hoothin作者
§
發表於:2022-02-11
編輯:2022-02-11
  {
    "name":"playstation",
    "action":1,
    "css":".psw-visually-hide{opacity:1!important}.pagetual_loading{display:none!important}[name='pagetual-iframe']{display:none}",
    "url":"^https://store\\.playstation\\.com/.*/\\d+$",
    "pageElement":"ul.psw-grid-list",
    "wait":2000,
    "nextLinkByUrl":["(.*/)(\\d+)$","$1{$2+1}"],
    "pageAction":"[].forEach.call(eles[0].querySelectorAll('[loading=lazy]'),img=>{img.src=img.src.replace('w=54&thumb=true','w=230&thumb=false');img.classList.remove('psw-blur')});"
  }

Update the script and try this new one

§
發表於:2022-02-11
編輯:2022-02-11

Still seems to be doing same issue and for some reason now when visiting the config page there's no textbox to enter rule
When adding a rule does that just update a online database?
Thanks

hoothin作者
§
發表於:2022-02-11

Maybe you visit the config page from other pages of github. I've update a new version for this.
When adding a rule to textarea on config page, the rule will be added to local with highest priority.
Rule from a online database should be updated by click the button with "Updated xxx ago" on config page.
By the way, I've add the rule for playstation to online database. You can just update rules by click if you wish.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址