Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How do games disable inspect element?

How do sites like agar.io & slither.io disable the ability to right click inspect element?

EDIT:
Figured out how to do it, simply had to disable the context menu like so:
PHP Code

<?php 
document
.addEventListener('contextmenu', function(e) {
    
e.preventDefault();
}); 
They don't ? I can inspect them.Try installing the FireBug extension for Chrome or Firefox. Then you can click this icon to inspect elements, it is widely used by web developers.
(Apr 21, 2016 01:06 PM)Tafelpoot Wrote:  They don't ? I can inspect them.Try installing the FireBug extension for Chrome or Firefox. Then you can click this icon to inspect elements, it is widely used by web developers.

🤐

[warn]
(Apr 21, 2016 02:27 PM)ModernMoney Wrote:  They do, just figured it out. Read my question again and know your facts before you act like a cunt please. Thanks 👍

For some reason your post just pissed me the fuck off.
1. http://lmgtfy.com/?q=how+do+I+disable+inspect+element
2. He's not acting like a cunt. All you have to do is install the firebug extension
http://prntscr.com/av7enk

One simple google search could have done the trick you pussy
(Apr 21, 2016 02:27 PM)ModernMoney Wrote:  They do, just figured it out. Read my question again and know your facts before you act like a cunt please. Thanks 👍

You are the cunt here. He gave you the right answer. You can't disable Inspect Element. It would be useless to anyways.

What these sites do is capture right click events, and cancel them.

As the user above me said, all you had to do was just head to Google. And to make matters worse you're rude as fuck.
(Apr 21, 2016 02:27 PM)ModernMoney Wrote:  They do, just figured it out. Read my question again and know your facts before you act like a cunt please. Thanks 👍

Lol what the fuck? Browsers will always be able to "Inspect Element" because they are responsible for rendering the HTML and JavaScript sent to you in the first place. You're essentially asking how you can use JavaScript to disable native functionality on a browser. You're wrong, and what's worse is that you're acting like a complete ass about it.


I used to eat poop. I still do, but I used to.
(Apr 21, 2016 03:11 PM)SIM-1725686 Wrote:  You are the cunt here. He gave you the right answer. You can't disable Inspect Element. It would be useless to anyways.

What these sites do is capture right click events, and cancel them.

As the user above me said, all you had to do was just head to Google. And to make matters worse you're rude as fuck.

As I stated in my question, I wanted to disable accessing it by right click. I'll be sure to bold it next time!
(Apr 21, 2016 03:18 PM)ModernMoney Wrote:  As I stated in my question, I wanted to disable accessing it by right click. I'll be sure to bold it next time!

And I think everybody will be sure to ignore your question next time. Nobody wants to help you if you're going to be a dick. End of conversation.
(Apr 21, 2016 03:22 PM)SIM-1725686 Wrote:  And I think everybody will be sure to ignore your question next time. Nobody wants to help you if you're going to be a dick. End of conversation.

I misinterpreted what he was saying. I'm in the wrong here. rep--


Possibly Related Threads...
Thread / Author Replies Views Last Post
by VitriolAug 17, 2019 02:58 AM 1 123 Aug 17, 2019 02:58 AM
Last Post: nulltax
by AurianaJan 5, 2019 12:35 PM 7 228 Jan 5, 2019 12:35 PM
Last Post: Auriana
[Help] by Binary GhoulJan 29, 2016 10:47 PM 1 93 Jan 29, 2016 10:47 PM
Last Post: Sunquyman