HentaiFox Loader

Load all the manga on MangaFox onto one scrollable page

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         HentaiFox Loader
// @namespace    http://hentaifox.com/
// @version      1.1
// @description  Load all the manga on MangaFox onto one scrollable page
// @author       testacda1
// @match *://*.hentaifox.com/g/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=hentaifox.com
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';
    let pages = document.getElementsByClassName("total_pages")[1].innerText;
    let currentPage = document.getElementsByClassName("current")[1].innerText;
    let imageServer = document.querySelector("#gimg").getAttribute("data-src").replace("https://i.hentaifox.com/", "");
    imageServer = imageServer.substring(0, imageServer.lastIndexOf("/") + 1);
    let parentNode = document.querySelector(".next_img");
    for (let i = parseInt(currentPage) + 1; i <= pages; i++) {
        let img = document.createElement("img");
        img.src = "https://i.hentaifox.com/" + imageServer + i + ".jpg";
        img.style.maxWidth = "1280px";
        img.style.maxHeight = "1816px";
        img.style.margin = "0 auto";
        img.style.display = "block";
        parentNode.appendChild(img);
    }
})();