Created
July 27, 2015 15:24
-
-
Save random-robbie/e18c601bf9578947ea14 to your computer and use it in GitHub Desktop.
Replaces all images on page with a skull and cross bones.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceSrc() | |
{ | |
var images = document.getElementsByTagName('img'); | |
for(var i = 0; i < images.length; i++) | |
{ | |
var img = images[i]; | |
img.src = 'http://i.imgur.com/ilWFZym.png'; | |
} | |
} | |
window.onload = replaceSrc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment