• We hope you have a fantastic holiday season to close out 2025! Thank you all so much for being part of the Tom's Guide community!

Is this hacking...

The_Freeman

Estimable
Apr 3, 2014
21
0
4,570
Is using the javascript command: javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0 on a webpage hacking? Yes or No and why?
 
Solution
That depends on the thought process of who is defining the 'hacking'. To some (uninformed) people, running anything from the command line, or booting from a Linux CD, is 'hacking'.


Yea I know that I was just wondering if this counts as hacking or not and why.
 
That depends on the thought process of who is defining the 'hacking'. To some (uninformed) people, running anything from the command line, or booting from a Linux CD, is 'hacking'.
 
Solution


'Gain unauthorized access to data in a system or computer' That's what I'm going by. (btw this isn't for me my friends are arguing about it)
 


If you are changing the content or design of a webpage in a way that is unauthorized by the owner, then yes....that would be 'hacking'. (If we are going by the current bastardized definition of 'hacking')
 

No. That's not doing anything invasive. It only affects YOUR screen. It's not saving that data. Someone else would not see any changes you make with that.
 
And if you're just reading the page source, no, that is NOT hacking. That functionality is built into current browsers.
 


Good its not only me that thinks it :) That's what I said to them but one still disagrees with me. I'm just trying to figure out what his definition of hacking is for it to be wrong!?!
 
Also, there are developer tools like Firebug that can already make changes like that and provides more features. So he's not being clever by running that.
 


Who said anything about being clever?

 

Your friend found a few JavaScript commands to enable content editing on a webpage and labeled it as "hacking" when there are already tools that does it better. If that's not trying to be clever, then that's just silliness.