Gelbooru Lazyload Fix

This script fixes the Gelbooru thumbnails if the thumbnail lazyloader doesn't run (typically due to an Adblocker)

  1. // ==UserScript==
  2. // @name Gelbooru Lazyload Fix
  3. // @version 1.0.3
  4. // @namespace atribecalledkwest
  5. // @description This script fixes the Gelbooru thumbnails if the thumbnail lazyloader doesn't run (typically due to an Adblocker)
  6. // @include https://gelbooru.com/*
  7. // @include http://gelbooru.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. var thumbs = document.querySelectorAll("img.lazyload[data-original]");
  13. for(var i = 0; i < thumbs.length; i++) {
  14. var img = thumbs[i];
  15. img.src = img.dataset.original;
  16. }
  17. })();