Skip to content

Instantly share code, notes, and snippets.

@dimaqw
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimaqw/1a0553763a689a402b82 to your computer and use it in GitHub Desktop.
Save dimaqw/1a0553763a689a402b82 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name hideImages
// @namespace hideImages
// @description hideImages
// @version 1
// @grant none
// ==/UserScript==
var pic = 'http://i.imgur.com/BkygUho.png';
var a = '-1';
while (a < document.images.length) {
a++;
if(document.images[a]!==undefined)
document.images[a].src = pic;
}
$('iframe').each(function () {
$(this).replaceWith('<img src="http://i.imgur.com/BkygUho.png">');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment