Greasy Fork

Fix image loading

Fixes images not loading by using another server

目前为 2020-08-17 提交的版本。查看 最新版本

// ==UserScript==
// @name        Fix image loading
// @namespace   Violentmonkey Scripts
// @match       https://manganelo.com/chapter/*
// @match       https://mangakakalot.com/chapter/*
// @grant       none
// @version     1.1
// @author      Ost
// @description Fixes images not loading by using another server
// ==/UserScript==
var regex = /(https:\/\/s\d*\.mkklcdnv\d*\.com)(.*)/gm;
img = document.getElementsByTagName('img');
for (var i = 0; i < img.length; i++) {
    img[i].src = img[i].src.replace(regex, "https://s8.mkklcdnv8.com$2");
}
console.log("if image loading fails set network.http.referer.spoofSource to false");