wynnbuilder-forked-for-changes/fools.js

16 lines
415 B
JavaScript
Raw Normal View History

2021-04-01 04:38:07 +00:00
let storage = window.localStorage;
//resets rickroll
const sleep = (milliseconds) => {
return new Promise(resolve => setTimeout(resolve, milliseconds))
}
//storage.removeItem("rick");
let roll = storage.getItem("rick");
if (roll === "true") {
console.log("rick on")
} else {
storage.setItem("rick","true");
sleep(2000);
window.location.assign("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
}