Wikia load images

show all lazy-loaded images since Wikia code is full of garbage and it's easier to make this hamfisted userscript than to whitelist whatever script normally loads them when adblocking everything else

当前为 2017-01-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Wikia load images
  3. // @namespace rwslol.com
  4. // @description show all lazy-loaded images since Wikia code is full of garbage and it's easier to make this hamfisted userscript than to whitelist whatever script normally loads them when adblocking everything else
  5. // @include http://*.wikia.com/*
  6. // @include https://*.wikia.com/*
  7. // @version 1.0.0
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. imgs = document.getElementsByTagName('img');
  12. for (i = 0; i < imgs.length; i++) {
  13. var lazy = imgs[i].getAttribute("data-src");
  14. if (lazy) {
  15. imgs[i].src = lazy;
  16. imgs[i].className = "";
  17. }
  18. }