Manganato Reader Enhancer

Enhancements for the Manganato manga reader for a better reading experience

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Manganato Reader Enhancer
// @name:es     Manganato Lector Mejorado
// @namespace   Violentmonkey Scripts
// @match       https://readmanganato.com/*
// @version     1.0
// @author      donkikote
// @description Enhancements for the Manganato manga reader for a better reading experience
// @description:es Mejoras al lector de mangas de Manganato para una mejor experiencia de lectura
// 
// @license MIT
// ==/UserScript==


var pagesDiv = document.body.getElementsByClassName("container-chapter-reader")[0];
var pages = pagesDiv.getElementsByTagName("img");
for (var i=0;i<pages.length;i++) {
  var image = pages.item(i)
  image.id="page"+i
  
  var imgA = document.createElement("a");
  imgA.href="#page"+(i+1);
  image.parentNode.replaceChild(imgA, image);
  imgA.appendChild(image);
}
var nextChapButton = document.body.getElementsByClassName("navi-change-chapter-btn-next")[0];
nextChapUrl = nextChapButton.href;
imgA.href=nextChapUrl;