Skip to content

Instantly share code, notes, and snippets.

View willyandan's full-sized avatar

Willyan Antunes willyandan

View GitHub Profile
@anmarco
anmarco / cage.js
Created February 10, 2019 02:20
change images to nicolas cage photo
var nr = 0;
function cage() {
var resources = performance.getEntriesByType("resource");
if (resources.length > nr){
nr = resources.length
var imgs = document.getElementsByTagName('img')
Array.from(imgs).forEach((e)=>{e.setAttribute('src', 'https://i.imgur.com/a4CBVXS.png')})
return
}
return
body {
background: #222;
color: #ddd;
white-space: pre;
font-family: monospace;
}
a {
color: #6482c8;
}