Old: v1.4.14 - 2014-12-31 - fixed unhandled url pattern on senmanga
New: v1.4.15 - 2015-01-18 - added mangawall and manag.animeA
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.4.14
- +// @version 1.4.15
- // @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
- @@ -34,6 +34,8 @@
- // @match http://www.pecintakomik.com/manga/*/*
- // @match http://dynasty-scans.com/chapters/*
- // @match http://www.onemanga.me/*/*
- +// @match http://mangawall.com/manga/*/*
- +// @match http://manga.animea.net/*
- // ==/UserScript==
- // don't bother running if in a frame
- if (window.top !== window.self) return;
- @@ -41,6 +43,9 @@
- // set to true for manga load without prompt
- var BM_MODE = false;
-
- +// safe short reference to unsafeWindow
- +var W = unsafeWindow;
- +
- var scriptName = 'Manga Loader';
- var pageTitle = document.title;
-
- @@ -356,6 +361,38 @@
- },
- prevchap: function() {
- return this.nextchap(true);
- + }
- +}, { // MangaWall
- + _page: null,
- + match: "^http://mangawall\\.com/manga/[^/]*/[0-9]*",
- + img: 'img.scan',
- + next: function() {
- + if(this._page === null) this._page = W.page;
- + return W.series_url + '/' + W.chapter + '/' + (this._page += 1);
- + },
- + numpages: '.pageselect',
- + curpage: '.pageselect',
- + nextchap: function(prev) {
- + return W.series_url + '/' + (parseInt(W.chapter.slice(1)) + (prev ? -1 : 1)) + '/1';
- + },
- + prevchap: function() {
- + return this.nextchap(true);
- + }
- +}, { // Manga AnimeA
- + _page: null,
- + match: "^http://manga\\.animea.net/.*chapter-[0-9]*-page-[0-9]*.html",
- + img: '#scanmr',
- + next: function() {
- + if(this._page === null) this._page = W.page;
- + return W.series_url + W.chapter + '-page-' + (this._page += 1) + '.html';
- + },
- + numpages: '.pageselect',
- + curpage: '.pageselect',
- + nextchap: function(prev) {
- + return W.series_url + 'chapter-' + (parseInt(W.chapter.match(/[0-9]+/)[0]) + (prev ? -1 : 1)) + '-page-1.html';
- + },
- + prevchap: function() {
- + return this.nextchap(true);
- }
- }];
-