Skip to content

Instantly share code, notes, and snippets.

@19WAS85
Last active December 19, 2015 23:09
Show Gist options
  • Save 19WAS85/6032697 to your computer and use it in GitHub Desktop.
Save 19WAS85/6032697 to your computer and use it in GitHub Desktop.
(function(){var a=Array.prototype.slice;var b=a.call(document.getElementsByTagName('img'));var c=a.call(document.getElementsByTagName('iframe'));var d=a.call(document.getElementsByTagName('object'));var e=b.concat(c).concat(d);for(var i=0;i<e.length;i++){e[i].style.visibility='hidden'};var f=document.getElementsByTagName('*');for(var i=0;i<f.length;i++){var g=f[i].attributes.style;var h=g?g.value+';':'';f[i].setAttribute('style',h+'background-image: none !important')};return false})();
(function () {
var slice = Array.prototype.slice;
var __images = slice.call(document.getElementsByTagName('img'));
var __iframes = slice.call(document.getElementsByTagName('iframe'));
var __objects = slice.call(document.getElementsByTagName('object'));
var __imageElements = __images.concat(__iframes).concat(__objects);
for(var i = 0; i < __imageElements.length; i++) {
__imageElements[i].style.visibility= 'hidden';
};
var __allElements = document.getElementsByTagName('*');
for (var i = 0; i < __allElements.length; i++) {
var elementInlineStyle = __allElements[i].attributes.style;
var styleValue = elementInlineStyle ? elementInlineStyle.value + ';' : '';
__allElements[i].setAttribute('style', styleValue + 'background-image: none !important');
};
return false;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment