hanFengSan / eHunter

For the best reading experience
MIT License
874 stars 51 forks source link

nHentai改版了 #87

Closed cafrew closed 3 years ago

cafrew commented 4 years ago

改版之后图库读不出来。 测试链接: https://nhentai.net/g/307081/

1

hanFengSan commented 4 years ago

嗯嗯,周末修一下,前几天有点忙

cafrew notifications@github.com 于 2020年6月19日周五 07:00写道:

改版之后图库读不出来。 测试链接: https://nhentai.net/g/307081/

[image: 1] https://user-images.githubusercontent.com/29897050/85079901-76b90a00-b1fa-11ea-9f3d-852925e1ad13.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hanFengSan/eHunter/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2SI5QGRDKFPESD372QARTRXKMADANCNFSM4OCG5CRQ .

InoryLwc commented 4 years ago

image +1

hinatasUterus commented 3 years ago

88 fixes this

if you're using TamperMonkey you can change the code manually for now

change return this.html.querySelector(".back-to-gallery").children[0].getAttribute("href") to return this.html.querySelector(".go-back").getAttribute("href") in two places

AND

change return this.html.querySelector("h1").innerHTML to

var titleDOM = this.html.querySelector("h1.title")
                return titleDOM.innerText;

use https://beautifier.io/ to beautify your code

Hope this helps

ZerOri commented 3 years ago

88 fixes this

if you're using TamperMonkey you can change the code manually for now

change return this.html.querySelector(".back-to-gallery").children[0].getAttribute("href") to return this.html.querySelector(".go-back").getAttribute("href") in two places

AND

change return this.html.querySelector("h1").innerHTML to

var titleDOM = this.html.querySelector("h1.title")
                return titleDOM.innerText;

use https://beautifier.io/ to beautify your code

Hope this helps

I modified it in this way, but the script still doesn't work. Can you send me the modified script? Thank you.😀

ZerOri commented 3 years ago

嗯嗯,周末修一下,前几天有点忙 cafrew notifications@github.com 于 2020年6月19日周五 07:00写道: 改版之后图库读不出来。 测试链接: https://nhentai.net/g/307081/ [image: 1] https://user-images.githubusercontent.com/29897050/85079901-76b90a00-b1fa-11ea-9f3d-852925e1ad13.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#87>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2SI5QGRDKFPESD372QARTRXKMADANCNFSM4OCG5CRQ .

一年过去了……

cafrew commented 3 years ago

[Uploading eHunter2.6.1.mod.user.zip…]()

hinatasUterus' suggestion is working. Many thanks. :kissing_smiling_eyes:

hinatasUterus commented 3 years ago

Glad to be of service!

hinatasUterus commented 2 years ago

eHunterCodeBeta.txt @ZerOri

ZerOri commented 2 years ago

eHunterCodeBeta.txt @ZerOri

thanks😄