-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mangadex's update broke it again #122
Comments
@SirMrMister Switch to legacy mode in the settings page of mangadex (as in, the site's settings page, not the userscript's). |
I've tried this too but it's not working. Here are my mangadex settings: |
Here's my settings under Site Settings, see if they're the same as yours. URL: Beginning of URL
Image: CSS selector
Back: function (html, pos) var backLink = '';
var page = parseInt(html.match(/data\-page=\"(\d+)\"/)[1]);
if (page <= 1) {
var prevChapter = parseInt(html.match(/var prev_chapter_id = (\d+);/)[1]);
if (prevChapter != "0") {
var prevPages = parseInt(html.match(/var prev_pages = (\d+);/)[1]);
backLink = "/chapter/" + prevChapter + "/" + prevPages;
}
} else {
var prevPage = page - 1;
backLink = decodeURI(link[pos]).split("/").slice(0, -1).join("/") + "/" + prevPage;
}
return backLink; Next: function(html, pos) var nextLink = '';
var page = parseInt(html.match(/data\-page=\"(\d+)\"/)[1]);
var lastPage = parseInt(xpath('//select[@id="jump_page"]/option[last()]/@value', html));
if (page >= lastPage) {
var nextChapter = parseInt(html.match(/var next_chapter_id = (\d+);/)[1]);
if (nextChapter != "0") {
nextLink = "/chapter/" + nextChapter + "/1";
}
} else {
var nextPage = page + 1;
nextLink = decodeURI(link[pos]).split("/").slice(0, -1).join("/") + "/" + nextPage;
}
return nextLink; First: function(html) var chapter = parseInt(html.match(/var chapter_id = (\d+);/)[1]);
return "/" + chapter + "/1"; Last: function(html) var chapter = parseInt(html.match(/var chapter_id = (\d+);/)[1]);
var lastPage = xpath('//select[@id="jump_page"]/option[last()]/@value', html);
return "/" + chapter + "/" + lastPage; No change on the others EDIT: Maybe it matters where you set it to Legacy (which I believe is unlikely...) ? Because here's where I changed it to legacy (Top right dropdown with you username > Settings) |
Well, I can't even get to changing the settings of webcomic reader on mangadex because no part of webcomic reader comes up. It's as if it doesn't recognize the site. My mangadex account settings are the same. |
@blindbox ah, thanks. With your connect I rechecked my |
Ok, I think I know what's happening. After I put in the custom settings, even if I press apply and save, the custom settings aren't saved. When I go back to the site settings page, it's set to default settings.... No idea what to do. |
Before the update that added the sidebar what worked was what onetimeuser123 posted at #102 .
Not anymore though.
The text was updated successfully, but these errors were encountered: