Vieux : v1.10.5 - 23/08/2016 - added otakusmash and fixed small bug with loading manga on last page when next match was undefined
Nouveau : v1.10.6 - 06/09/2016 - fix thanks to @nobody123 "Fixed curpages and numpages on dm5"
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.10.5
- +// @version 1.10.6
- // @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
- @@ -338,8 +338,12 @@
- match: "^https?://[^\\.]*\\.dm5\\.com/m[0-9]*",
- img: '#cp_image',
- next: '#cp_image',
- numpages: '#pagelist',
- curpage: '#pagelist',
- + numpages: function () {
- + return getEls('a', getEl('.pageBar')).length;
- + },
- + curpage: function() {
- + return parseInt(getEl('.pageBar .active').dataset.pgt);
- + },
- pages: function(url, num, cb, ex) {
- var cid = window.location.href.match(/m[0-9]*/g)[2].slice(1),
- xhr = new XMLHttpRequest();