]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/assets/tr/guide_javascript_dark.html
d80eb0b6d060a0aaeec213a44ef916a50e50fe7b
[PrivacyBrowserAndroid.git] / app / src / main / assets / tr / guide_javascript_dark.html
1 <!--
2   Copyright © 2016-2019 Soren Stoutner <soren@stoutner.com>.
3
4   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
5
6   Privacy Browser is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   Privacy Browser is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
18
19 <html>
20     <head>
21         <meta charset="UTF-8">
22
23         <link rel="stylesheet" href="../css/dark_theme.css">
24     </head>
25
26     <body>
27         <h3><img class="title" src="../shared_images/privacy_browser.png"> JavaScript Is Powerful</h3>
28
29         <p>Back in the early days of the internet, web pages were static, meaning they they contained text and images that were displayed on the screen but didn’t change or interact with the user.
30             Of course, only so much that is interesting can happen with static content. Several different technologies were developed to facilitate dynamic web pages.
31             JavaScript is one of these technologies.</p>
32
33         <p>JavaScript is a programming language. Many web servers host programs written in JavaScript, which are sent to devices as part of the web page.
34             The device runs the JavaScript on its local processor and follows the commands of the program, which can animate images on the website, popup a menu, and do many other useful things.</p>
35
36
37         <h3><img class="title" src="../shared_images/javascript_enabled.png"> JavaScript Is Dangerous</h3>
38
39         <p>Of course, the concept of running arbitrary programs from a website is potentially dangerous. So there are limitations placed on JavaScript to keep it from doing things like installing viruses.
40             However, it turns out that these limitations are overly broad.
41             Below is a screenshot from <a href="http://webkay.robinlinus.com">webkay</a>, which is a website that demonstrates the type of information that JavaScript can produce about a device.
42             <a href="http://www.browserleaks.com/">Browser Leaks</a> is another good resource.</p>
43
44         <p><img class="center" src="../en/images/webkay.png"></p>
45
46         <p>For privacy purposes, the ideal would be to browse the internet with JavaScript disabled.
47             However, there are some websites that legitimately require JavaScript to accomplish their purposes
48             and others that don’t work correctly without JavaScript even though they could be programmed to do so.
49             Privacy Browser addresses this by making it easy to toggle JavaScript on and off.
50             Tapping the privacy shield will toggle it between blue <img class="inline" src="../shared_images/privacy_browser.png"> or yellow <img class="inline" src="../shared_images/warning.png">
51             (both of which indicate that JavaScript is disabled) and red <img class="inline" src="../shared_images/javascript_enabled.png"> (JavaScript enabled).
52             Looking at the different information <a href="http://webkay.robinlinus.com">webkay</a> can collect with JavaScript enabled and disabled is informative.</p>
53
54         <p>Browsing the internet with JavaScript disabled, and only enabling it if needed, goes a long way toward protecting privacy.
55             In addition, JavaScript is used to load much of the annoying advertisements and extra cruft that comes along with most modern websites.
56             With it disabled, websites will load faster, consume less network traffic, and use less CPU power, which leads to longer battery life.</p>
57     </body>
58 </html>