Fastzone imageUrl fixer

Fix the fastzone image url bug.

  1. // ==UserScript==
  2. // @name Fastzone imageUrl fixer
  3. // @namespace https://www.facebook.com/KoiosYu/
  4. // @version 0.1.1
  5. // @description Fix the fastzone image url bug.
  6. // @author Yu Jia
  7. // @match https://fastzone.org/forum.php?mod=*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. url_fix();
  14. })();
  15.  
  16. function url_fix() {
  17. var datas = document.getElementsByTagName("img");
  18. for(var key in datas) {
  19. var str = datas[key];
  20. if(str.src.match(/get_image/gi))
  21. {
  22. document.getElementsByTagName("img")[key].src = str.src.replace("https://fastzone.org/get_image.php?url=","");
  23. }
  24. }}