Antigo: v1.4.13 - 25/12/2014 - handled alternate URL for mangastream (mangastream.com/read as well as readms.com/r)
Novo: v1.4.14 - 31/12/2014 - fixed unhandled url pattern on senmanga
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.4.13
- +// @version 1.4.14
- // @description Loads manga chapter into one page in a long strip format, supports switching chapters and works for a variety of sites, minimal script with no dependencies, easy to implement new sites
- // @copyright 2014+, fuzetsu
- // @noframes
- @@ -291,15 +291,14 @@
- xhr.send();
- }
- }, { // Senmanga
- match: "^http://raw\\.senmanga\\.com/[^/]*/[0-9]*/[0-9]*",
- + match: "^http://raw\\.senmanga\\.com/[^/]*/[^/]*/[0-9]*",
- img: '#picture',
- next: '#omv > table > tbody > tr:nth-child(2) > td > a',
- numpages: 'select[name=page]',
- curpage: 'select[name=page]',
- nextchap: function(prev) {
- var url = window.location.href,
- current = url.match(/\/([0-9]+)\//)[1];
- return window.location.href.replace(/[0-9]+\/[0-9]+\/?$/, '') + (parseInt(current) + (prev ? -1 : 1)) + '/1';
- + var next = extractInfo('select[name=chapter]', {type: 'value', val: (prev ? 1 : -1)});
- + if(next) return window.location.href.replace(/\/[^\/]*\/[0-9]+\/?$/, '') + '/' + next + '/1';
- },
- prevchap: function() {
- return this.nextchap(true);