Fix image loading

Fixes images not loading by using another server

目前为 2020-09-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Fix image loading
  3. // @namespace Violentmonkey Scripts
  4. // @match https://manganelo.com/chapter/*
  5. // @match https://mangakakalot.com/chapter/*
  6. // @grant none
  7. // @version 1.4
  8. // @author Ost
  9. // @description Fixes images not loading by using another server
  10. // ==/UserScript==
  11.  
  12. // Enable this to switch image server, just change the server number
  13.  
  14. var server = "5";
  15. var regex = /(https:\/\/s\d*\.mkklcdnv\d*\.com)(.*)/gm;
  16. img = document.getElementsByTagName('img');
  17. for (var i = 0; i < img.length; i++) {
  18. img[i].src = img[i].src.replace(regex, "https://s"+server+".mkklcdnv"+server+".com$2");
  19. }
  20.  
  21. console.log("if image loading fails set network.http.referer.spoofSource to false");
  22. console.log("if no referers are sent try setting network.http.referer.XOriginPolicy to 0");