Old: v1.4.19 - 2015-01-26 - fixed issue where reloading image that failed to load pushed it to the bottom of the page
New: v1.4.20 - 2015-01-27 - added support for http://hqbr.com.br
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.4.19
- +// @version 1.4.20
- // @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
- @@ -41,6 +41,7 @@
- // @match http://view.thespectrum.net/series/*
- // @match http://manhua.dmzj.com/*/*
- // @match http://www.8muses.com/picture/*/category/*
- +// @match http://hqbr.com.br/hqs/*/capitulo/*/leitor/0
- // ==/UserScript==
- // don't bother running if in a frame
- if (window.top !== window.self) return;
- @@ -450,6 +451,27 @@
- match: "http://www.8muses.com/picture/[^/]+/category/.+",
- img: '.image',
- next: '.imgLiquidFill > a'
- +}, { // hqbr.com.br
- + match: "http://hqbr.com.br/hqs/[^/]+/capitulo/[0-9]+/leitor/0",
- + img: '#hq-page',
- + next: '#hq-page',
- + numpages: function() {
- + return W.pages.length;
- + },
- + curpage: function() {
- + return W.paginaAtual + 1;
- + },
- + nextchap: function(prev) {
- + var chapters = getEls('#chapter-dropdown a'),
- + current = parseInt(W.capituloIndex);
- + return chapters[current + (prev ? -1 : 1)].href;
- + },
- + prevchap: function() {
- + return this.nextchap(true);
- + },
- + pages: function(url, num, cb, ex) {
- + cb(W.pages[num - 1], num);
- + }
- }];
-
- var log = function(msg, type) {