Παλαιά: v1.6.22 - 27/06/2015 - fixed chapter detection for mangakaka and mangajoy
Νέα: v1.6.23 - 30/06/2015 - added foolslide implementation and matched 3 sites that use it (redhawkscans, s2smanga, casanovascans)
- @@ -1,7 +1,7 @@
- // ==UserScript==
- // @name Manga Loader
- // @namespace http://www.fuzetsu.com/MangaLoader
-// @version 1.6.22
- +// @version 1.6.23
- // @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, loads quickly and works on mobile devices through bookmarklet
- // @copyright 2014+, fuzetsu
- // @noframes
- @@ -52,6 +52,9 @@
- // @match http://www.hentairules.net/galleries*/picture.php*
- // @match http://www.mangakaka.com/*/*
- // @match http://www.readmanga.today/*/*
- +// @match http://manga.redhawkscans.com/reader/read/*
- +// @match http://reader.s2smanga.com/read/*
- +// @match http://casanovascans.com/read/*
- // ==/UserScript==
-
- // should be set to true externally if auto loading is wanted (e.g. bookmarklet)
- @@ -668,6 +671,35 @@
- nextchap: '.jump-menu[name=chapter_list]',
- prevchap: '.jump-menu[name=chapter_list]',
- invchap: true
- +}, {
- + name: 'foolslide',
- + match: "^(http://manga.redhawkscans.com/reader/read/.+|http://reader.s2smanga.com/read/.+|http://casanovascans.com/read/.+)",
- + img: 'img.open',
- + next: 'img.open',
- + numpages: function() {
- + return W.pages.length;
- + },
- + curpage: function() {
- + return W.current_page + 1;
- + },
- + nextchap: function(prev) {
- + var desired;
- + var dropdown = getEls('ul.dropdown')[1] || getEls('ul.uk-nav')[1];
- + if(!dropdown) return;
- + getEls('a', dropdown).forEach(function(chap, idx, arr) {
- + if(location.href.indexOf(chap.href) === 0) desired = arr[idx + (prev ? 1 : -1)];
- + });
- + return desired && desired.href;
- + },
- + prevchap: function() {
- + return this.nextchap(true);
- + },
- + pages: function(url, num, cb, ex) {
- + cb(W.pages[num - 1].url, num);
- + },
- + wait: function() {
- + return W.pages;
- + }
- }];
-
- var log = function(msg, type) {