Old: v1.9.21 - 2015-11-25 - hopefully fixed spinybackmanga
New: v1.9.22 - 2015-11-25 - fixed spinybackmanga chapter issue
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.9.21
- +// @version 1.9.22
- // @description Support for over 70 sites! Loads manga chapter into one page in a long strip format, supports switching chapters, minimal script with no dependencies, easy to implement new sites, loads quickly and works on mobile devices through bookmarklet
- // @copyright 2014+, fuzetsu
- // @noframes
- @@ -910,8 +910,16 @@
- return getEls('.selector .options')[1].children.length;
- },
- nextchap: function(prev) {
- var chap = getEls('.selector .options')[1].children[this.curchap() - 1 + (prev ? -1 : 1)];
- return chap && chap.href;
- + var nextChap = document.scripts[2].textContent.match(/location.href = "([^"]+)"/)[1];
- + if(prev) {
- + [].some.call(getEls('.selector .options')[1].children, function(child, index, children) {
- + if(child.href === nextChap) {
- + nextChap = children[index - 2] && children[index - 2].href;
- + return true;
- + }
- + });
- + }
- + return nextChap;
- },
- prevchap: function() {
- return this.nextchap(true);