Fix images for token pages

makes images work in token pages

  1. // ==UserScript==
  2. // @name Fix images for token pages
  3. // @namespace pendevin
  4. // @description makes images work in token pages
  5. // @include http://endoftheinter.net/tokenlist.php?*
  6. // @include https://endoftheinter.net/tokenlist.php?*
  7. // @include http://endoftheinter.net/mytokens.php?*
  8. // @include https://endoftheinter.net/mytokens.php?*
  9. // @version 1.1
  10. // @grant none
  11. // @require http://code.jquery.com/jquery-2.1.1.min.js
  12. // ==/UserScript==
  13.  
  14. //ll breaks without noconflict jquery
  15. this.$ = this.jQuery = jQuery.noConflict(true);
  16.  
  17. //get the images
  18. var imgs=$('.imgs>a');
  19. imgs.each(function(i,img){
  20. img=$(img);
  21. //the image source is conveniently included in the parent link
  22. var src=img.attr('imgsrc');
  23. //replace the broken imageloader with normal images
  24. img.html('<img src="'+src+'">');
  25. });