DEV Community

acode123
acode123

Posted on • Originally published at freetechnologyhelp.com

3 Techy pranks to pull on your mates(Or your cranky bossπŸ˜›)

Note

Before we start, I would like to apologise for my absence during the past few days. By the way, here is a link to my blog, which you may visit after reading this post.
Link to my blog

What better way to show your digital skills than from an expertly crafted prank? Today, I will be sharing 3 of my most cheeky and creative pranks that I have personally used multiple times to prank my friends.

The Spinning Web Page - Prank 1

Wait, what is happening to my laptop, everything is spinning! I can't do anything, what shall I do, who is behind this?

That will be exactly what your victim would be thinking when you are done with them.

Step 1:

When they are not paying attention, sneak up to their laptop, open up their browser on any tab(if not already opened), right-click(on windows) or double tap(on mac) to open up the browser context menu. Now select inspect from the list of options.

Step 2:

Select the console from the top list of options.

List of options

Step 3:

Now it's the fun part, copy this code to the console. And HIT ENTER!

(function({document.documentElement.style.transitionDuration="60s";document.documentElement.style.transitionTimingFunction="ease-in";document.documentElement.style.transform="rotate(360000deg)";}());

Step 4:

Now close the inspect menu to hide the evidence!

Closing the inspect menu

Grabify - Prank 2

In the end, if all is done correctly, you will know every juicy detail about your target(victim). After that, you will slowly slip the information you gathered bit by bit. Your target would wonder how you got all the information about them.

Step 1:

Go to https://grabify.link/

Step 2:

Enter your link into the input box, then click the create URL button. After that, agree to the terms of conditions that pop up.

Step 3:

Turn on the smart logger option, copy the link under "New link" and send it to your friends.

When your friends receive your surprise link and click on it, you will have all the information about them you will ever need.

Disappearing Mouse - Prank 3

What can you do with the power to delete your friend's mouse? Not this kind of mouse🐁, but your friend's computer mouse.

Step 1:

Similar to the first prank, when your friend is not paying attention, open any browser, if not already opened. Right-click on any tab on the browser, then select inspect.

Step 2:

Now select console from the list of options as shown below:

List of options

Step 3:

After that, copy this into the console window:

(function(){var x = document.getElementsByTagName("*"); for (i = 0; i < x.length; i++) {x[i].style.cursor = "none"};}());

Step 4:

Now, close the popup(inspect) window to erase the evidence!

Closing the inspect menu

Conclusion:

I hope you have fun with the pranks provided above! Have a lovely day!

Top comments (5)

Collapse
 
ben profile image
Ben Halpern

I am personally the author of this chrome extension that turns every image on every webpage into the same picture of Dave Coulier.

Dave Coulier

The extension is from 8 years ago and is a little flakey when I just installed it and tested it. It was a quick-and-dirty approach in 2014, and today is even more flakey due to a much more asynchronous web. If I were rewriting it today I'd take a much different approach.

... But anyway, the best way to use this type of extension is as a prank on an unsuspecting friend. It can act as a good lesson in personal security to always shut your laptop when you walk away.

Collapse
 
acode123 profile image
acode123

I agree with you, the internet has changed quite a bit since 2014.

Collapse
 
lukeshiru profile image
Luke Shiru

A simplification of the spin script:

(()=>Object.assign(document.documentElement.style,{transitionDuration:"60s",transitionTimingFunction:"ease-in",transform:"rotate(360000deg)"}))();
Enter fullscreen mode Exit fullscreen mode

And you can also "encrypt" it so nobody knows what it does until they run it (and yes, this is valid JS):

(({ㅁ=[],Ø=+ㅁ,γ„·=(!Ø+ㅁ),γ„Έ=(!ㅁ+ㅁ),γ…Ž=(ㅁ+ㅁ),γ…£=((-~ㅁ/Ø)+ㅁ),γ…—=({}+ㅁ),γ„²=γ…—[5]+γ…—[1]+γ…£[1]+γ„Έ[3]+γ…—[6]+γ„·[1]+γ„·[2]+γ…—[5]+γ…—[6]+γ…—[1]+γ„·[1],γ……=γ…Ž[γ„²],γ…†=(γ……+ㅁ),Ξ=/\\/,Ξ£=γ…—[6]+γ…—[1]+γ…†[9]+γ…—[6]+γ„·[1]+γ…£[3]+γ…£[1]+γ…†[14],Ζ’=(()=>{})[γ„²],γ…‹=(Ζ’(γ„·[1]+γ…—[4]+γ…—[6]+γ„·[2]+γ„·[1]+γ…£[1]+γ…—[7]+γ…—[4]+γ„Έ[3]+γ…—[5]+γ„Έ[1]+(Ξ[γ„²]+ㅁ)[14]+γ…—[4])()((Ξ+ㅁ)[1]))[2],Ξ”=γ……[γ…£[2]+γ„·[1]+γ…—[1]+(22)[Ξ£](23)+γ…‹+(17)[Ξ£](18)+γ„Έ[1]+γ„·[1]+γ…‹+γ…—[1]+γ…†[30]+γ…—[4]]})=>(Ζ’(γ…†[15]+γ…†[15]+γ…†[16]+Ξ”(61)+Ξ”(62)+γ…—[8]+γ…—[2]+γ…—[3]+γ…—[4]+γ…—[5]+γ…—[6]+Ξ”(46)+γ„Έ[1]+γ„Έ[3]+γ„Έ[3]+γ…£[3]+γ…†[14]+γ…£[1]+γ…†[15]+γ…†[30]+γ…—[1]+γ…—[5]+γ„·[2]+Ξ”(109)+γ…—[4]+γ…£[1]+γ…—[6]+Ξ”(46)+γ…†[30]+γ…—[1]+γ…—[5]+γ„·[2]+Ξ”(109)+γ…—[4]+γ…£[1]+γ…—[6]+Ξ”(69)+γ„Έ[2]+γ…—[4]+Ξ”(109)+γ…—[4]+γ…£[1]+γ…—[6]+Ξ”(46)+γ„Έ[3]+γ…—[6]+γ…£[7]+γ„Έ[2]+γ…—[4]+Ξ”(44)+γ…†[18]+γ…—[6]+γ„·[1]+γ„Έ[1]+γ…£[1]+γ„Έ[3]+γ…£[3]+γ…—[6]+γ…£[3]+γ…—[1]+γ…£[1]+Ξ”(68)+γ„·[2]+γ„·[1]+γ„Έ[1]+γ…—[6]+γ…£[3]+γ…—[1]+γ…£[1]+Ξ”(58)+Ξ”(34)+Ξ”(54)+Ξ”(48)+γ„Έ[3]+Ξ”(34)+Ξ”(44)+γ…—[6]+γ„·[1]+γ„Έ[1]+γ…£[1]+γ„Έ[3]+γ…£[3]+γ…—[6]+γ…£[3]+γ…—[1]+γ…£[1]+Ξ”(84)+γ…£[3]+Ξ”(109)+γ…£[3]+γ…£[1]+γ…†[14]+Ξ”(70)+γ„·[2]+γ…£[1]+γ…—[5]+γ…—[6]+γ…£[3]+γ…—[1]+γ…£[1]+Ξ”(58)+Ξ”(34)+γ…—[4]+γ„Έ[1]+γ„Έ[3]+γ…—[4]+Ξ”(45)+γ…£[3]+γ…£[1]+Ξ”(34)+Ξ”(44)+γ…—[6]+γ„·[1]+γ„Έ[1]+γ…£[1]+γ„Έ[3]+γ…£[2]+γ…—[1]+γ„·[1]+Ξ”(109)+Ξ”(58)+Ξ”(34)+γ„·[1]+γ…—[1]+γ…—[6]+γ„Έ[1]+γ…—[6]+γ…—[4]+γ…†[15]+Ξ”(51)+Ξ”(54)+Ξ”(48)+Ξ”(48)+Ξ”(48)+Ξ”(48)+γ…†[30]+γ…—[4]+γ…†[14]+γ…†[16]+Ξ”(34)+γ…†[34]+γ…†[16]+γ…†[16]+γ…†[15]+γ…†[16]+Ξ”(59))))({})()
Enter fullscreen mode Exit fullscreen mode

The disappearing mouse script also can be simplified:

(()=>document.querySelectorAll("*").forEach(e=>(e.style.cursor="none")))();
Enter fullscreen mode Exit fullscreen mode

And made into a cryptic mess:

(({ㅁ=[],Ø=+ㅁ,γ„·=(!Ø+ㅁ),γ„Έ=(!ㅁ+ㅁ),γ…Ž=(ㅁ+ㅁ),γ…£=((-~ㅁ/Ø)+ㅁ),γ…—=({}+ㅁ),γ„²=γ…—[5]+γ…—[1]+γ…£[1]+γ„Έ[3]+γ…—[6]+γ„·[1]+γ„·[2]+γ…—[5]+γ…—[6]+γ…—[1]+γ„·[1],γ……=γ…Ž[γ„²],γ…†=(γ……+ㅁ),Ξ=/\\/,Ξ£=γ…—[6]+γ…—[1]+γ…†[9]+γ…—[6]+γ„·[1]+γ…£[3]+γ…£[1]+γ…†[14],Ζ’=(()=>{})[γ„²],γ…‹=(Ζ’(γ„·[1]+γ…—[4]+γ…—[6]+γ„·[2]+γ„·[1]+γ…£[1]+γ…—[7]+γ…—[4]+γ„Έ[3]+γ…—[5]+γ„Έ[1]+(Ξ[γ„²]+ㅁ)[14]+γ…—[4])()((Ξ+ㅁ)[1]))[2],Ξ”=γ……[γ…£[2]+γ„·[1]+γ…—[1]+(22)[Ξ£](23)+γ…‹+(17)[Ξ£](18)+γ„Έ[1]+γ„·[1]+γ…‹+γ…—[1]+γ…†[30]+γ…—[4]]})=>(Ζ’(γ…†[15]+γ…†[15]+γ…†[16]+Ξ”(61)+Ξ”(62)+γ…†[30]+γ…—[1]+γ…—[5]+γ„·[2]+Ξ”(109)+γ…—[4]+γ…£[1]+γ…—[6]+Ξ”(46)+Ξ”(113)+γ„·[2]+γ…—[4]+γ„·[1]+γ…£[7]+γ…†[9]+γ…—[4]+γ„Έ[2]+γ…—[4]+γ…—[5]+γ…—[6]+γ…—[1]+γ„·[1]+Ξ”(65)+γ„Έ[2]+γ„Έ[2]+γ…†[15]+Ξ”(34)+Ξ”(42)+Ξ”(34)+γ…†[16]+Ξ”(46)+γ…£[2]+γ…—[1]+γ„·[1]+Ξ”(69)+γ„Έ[1]+γ…—[5]+Ξ”(104)+γ…†[15]+γ…—[4]+Ξ”(61)+Ξ”(62)+γ…†[15]+γ…—[4]+Ξ”(46)+γ„Έ[3]+γ…—[6]+γ…£[7]+γ„Έ[2]+γ…—[4]+Ξ”(46)+γ…—[5]+γ„·[2]+γ„·[1]+γ„Έ[3]+γ…—[1]+γ„·[1]+Ξ”(61)+Ξ”(34)+γ…£[1]+γ…—[1]+γ…£[1]+γ…—[4]+Ξ”(34)+γ…†[16]+γ…†[16]+γ…†[16]+γ…†[15]+γ…†[16]+Ξ”(59))))({})()
Enter fullscreen mode Exit fullscreen mode

Cheers!

Collapse
 
acode123 profile image
acode123

Thanks for simplifying the code, would you mind if I put the updated code onto the post?

Collapse
 
lukeshiru profile image
Luke Shiru • Edited

Of course! Use it as you please! ^_^