Monday, November 4, 2013

Remove all images on a website

Such a simple thing, yet Google gives you nothing on how to achieve this. So, I'll make a post about it.

Here's how you remove all images on a website:

javascript: var images = document.getElementsByTagName('img'); for(var i in images){images[i].style.display = "none"}

Create a new bookmark and put the above code in the URL field (example: Chrome)


And add the bookmark to your browser bar (example: Chrome)


Press the button and all/most pictures should disappear. (Some pictures won't, because they are coded on the website in such a way that prevents this easily. I'll try to improve the code to check for this at some point)


No comments:

Post a Comment