Skip to content
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

Update exhentai #34

Merged
merged 1 commit into from
Aug 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion webcomic_reader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ var defaultSettings = {
// @include http://www.bearandtiger.com/*
// @include http://mangatopia.net/*
// @include http://exhentai.org/*
// @include https://exhentai.org/*
// @include http://www.wigucomics.com/*
// @include http://www.mankin-trad.net/*
// @include http://mankin-trad.net/*
Expand Down Expand Up @@ -1944,7 +1945,9 @@ var paginas = [
scrollx:'R',
onerr: function(url, img, num, pos){
if(num >= 4) return null;
var nl = extra[pos].innerHTML.match(/nl\((\d+)\)/)[1];
//var nl = extra[pos].innerHTML.match(/nl\((\d+)\)/)[1];
var nl = get('loadfail').getAttribute('onclick').match(/\(\'(.*)\'\)/)[1];
console.log(nl);
var u = url.split('?nl=');
if(u[1] == nl) return null;
return {url: u[1] + '?nl=' + nl };
Expand Down