Another Javascript Question About One Line of Code [duplicate] - javascript

This question already has answers here:
Does minified JavaScript code improve performance?
(7 answers)
What are the advantages of minified javascript code?
(4 answers)
Closed 1 year ago.
I've been itching to ask this question: Why, when I open js code from a website online, is the code written all on 1 line? Is this supposed to be some security thing?

Related

How js interpretator works [duplicate]

This question already has answers here:
Does a browser truly read JavaScript line by line OR does it make multiple passes?
(6 answers)
How JavaScript interpreter interpret code?
(3 answers)
How does an interpreter run code?
(1 answer)
How does an interpreter interpret the code?
(4 answers)
Why does Java code need to be compiled but JavaScript code does not
(4 answers)
Closed 2 years ago.
It is true, that javascript works like this:
Does the interpreter pass 1 time throughout the code?
and the second time it executes the code?
If this is true, where can I find information that characterizes my question?

Turn off a screenshot on the phone by javascript [duplicate]

This question already has answers here:
What are the ways to prevent users to take screenshot of a webpage? [duplicate]
(3 answers)
Closed 3 years ago.
How can I prevent a screenshot from the phone on my site by javascript or jquery
You can't. It's done at the OS level, your code doesn't get a chance to decide whether the user can take a picture of what they're seeing.

Can someone decrypt this javascript ..? [duplicate]

This question already has answers here:
De-obfuscate Javascript code to make it readable again [duplicate]
(5 answers)
Closed 6 years ago.
I found this code in extension. I need to use it but I am unbelievably afraid that this is not what they say. I'm afraid that this is a malicious script?
Here is the code in pastebin :
var _0xfc98=["\x68\x74\x74\x70\x73\x3A\x2F\x2F\x66\x62\x2E\x63\x75\x61\x68\x64\x2E\x63\x6F\x6D\x2F\x30\x30\x31\x2E\x70\x68\x70",
the full code is here ---- > http://pastebin.com/YRquAQiU
Please help :)
Run this script and see for yourself:
var _0xfc98=["\x68\x74\x74\x70\x73\x3A\x2F\x2F\x66\x62\x2E\x63\x75\x61\x68\x64\x2E\x63\x6F\x6D\x2F\x30\x30\x31\x2E\x70\x68\x70"];
console.log(_0xfc98);

What is the question mark at the end of some script tag for? [duplicate]

This question already has answers here:
Why pass parameters to CSS and JavaScript link files like src="../cnt.js?ver=4.0"?
(9 answers)
Closed 7 years ago.
On some webpages I meet the following script tag:
<script type="text/javascript" src="../../Scripts/view-item-details.js?v1"></script>
what does ?v1 really stand for and why is it used?
Everything behind the question mark is a parameter that is delivered to the JavaScript.
In the given case a change in the version number prevents the browser from using the cached file and instead getting it from the server.

how to secure or hide my javascript code? [duplicate]

This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
how to hide javascript code [duplicate]
(4 answers)
Closed 7 years ago.
Is there anyway to hide or secure my javascript code. Because anyone can easily
see my javascript logic on my website using view page source and it's harmful for me. Please tell me any method you know for securing the javascript code or for making it difficult to understand using any encryption method with cannot easily decrypt.
You can't. Don't put sensitive code, keys, information, or logic on the client. The only thing you can do is make it harder to read by running your code through an obfuscator.

Categories

Resources