Guest User

Kotaku imagefix userscript

a guest
Oct 14th, 2019
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name Kotaku imagefix
  3. // @description Fixes image loading on the Kotaku AU front page, if Taboola is blocked
  4. // @match https://www.kotaku.com.au/
  5. // @grant none
  6. // ==/UserScript==
  7.  
  8. (function() {
  9. 'use strict';
  10.  
  11. $("body").bind("DOMSubtreeModified", function() {
  12. $('[data-src]').each(function() {
  13. $(this).attr('src', $(this).attr('data-src'));
  14. });
  15. });
  16. })();
RAW Paste Data