Advertisement
Guest User

Kotaku imagefix userscript

a guest
Oct 14th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement