Skip to content

Commit

Permalink
1.11.28 handle both kissmanga variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzetsu authored May 8, 2020
1 parent 77d5de3 commit 25e7337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manga-loader.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Manga Loader
// @namespace http://www.fuzetsu.com/MangaLoader
// @version 1.11.27
// @version 1.11.28
// @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 2016+, fuzetsu
// @noframes
Expand Down Expand Up @@ -518,7 +518,7 @@ var implementations = [{
img: '#divImage img',
next: '#divImage img',
numpages: function() {
return W.lstOLA.length;
return (W.lstOLA || W.lstImages).length;
},
curpage: function() {
if(getEls('#divImage img').length > 1) {
Expand All @@ -530,7 +530,7 @@ var implementations = [{
nextchap: '#selectChapter, .selectChapter',
prevchap: '#selectChapter, .selectChapter',
pages: function(url, num, cb, ex) {
cb(W.lstOLA[num - 1], num);
cb((W.lstOLA || W.lstImages)[num - 1], num);
}
}, {
name: 'the-spectrum-scans',
Expand Down

0 comments on commit 25e7337

Please sign in to comment.