The JavaScript Prank Website

Benjamin Yee




What's the point of JavaScript?

JavaScript (abbreviated as JS) is one of the three main programming languages used in the development of web pages. All major web browsers have a dedicated JavaScript engine in order to allow for interactive web pages and web applications. Although JS does not include its own graphic capabilities, it can be used to work with text, dates, mathematical expressions, and can manipulate the values of its host environment. With this, developers are able to create dynamic websites, web servers, and databases.


What's the point of this website?

So if JavaScript can be used to create websites, why not use JS to destroy websites? The scripts on this page only execute client-side, meaning they will only work on the current page, on the current device, until the user refreshes the page. However, for the, shall we say technologically-impaired, it means panic and chaos as their website goes haywire. Could it be a virus? A hacker's attack on my computer? Meanwhile, we can sit back and watch as hilarity ensues. Enjoy!


Use these pranks on:





A few JS scripts to get started:

(just type javascript: into the search bar on any site, then copy + paste the code)

Refresh the page to stop the scripts.

Script:
The Wonky Page (function(){var x = document.body.getElementsByTagName("*"); for (i = 0; i < x.length; i++) {var y = Math.floor((Math.random()*10)+1); x[i].style.transform="rotate("+y+"deg)"}}()); Wonkifies the page!
Test Me!
The Mirrored Page (function(){var x = document.getElementsByTagName("body"); x[0].style.transform = "scaleX(-1)";}()); Mirrors the page!
Test Me!
The Yelling Page (function(){document.body.style.textTransform="uppercase";}()); MAKES WORDS LOUDER!
Test Me!




Extras


Click me to visit W3Schools to learn more about JavaScript!

Watch these scripts in action!