Fix the current broken page on mangapark
目前為
// ==UserScript==
// @name Temp fix mangapaerk
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Fix the current broken page on mangapark
// @author James
// @license MIT
// @match https://mangapark.net/title/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=mangapark.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
var images = document.getElementsByTagName('img');
let retries = 20;
const intervalID = setInterval(_ => {
for(var i = 0; i < images.length; i++) {
if (images[i].naturalWidth === 0) {
if(images[i].src.includes("https://s02")){
images[i].src = images[i].src.replace("https://s02", "https://s03");
}
}
}
retries--;
if(retries == 0) clearInterval(intervalID);
}, 500);
})();