OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
3 <!DOCTYPE html [ | 3 <!DOCTYPE html [ |
4 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > | 4 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > |
5 %brandDTD; | 5 %brandDTD; |
6 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> | 6 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> |
7 %globalDTD; | 7 %globalDTD; |
8 <!ENTITY % fennecDTD SYSTEM "chrome://browser/locale/about.dtd"> | 8 <!ENTITY % fennecDTD SYSTEM "chrome://browser/locale/about.dtd"> |
9 %fennecDTD; | 9 %fennecDTD; |
10 ]> | 10 ]> |
11 | 11 |
12 <!-- This Source Code Form is subject to the terms of the Mozilla Public | 12 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
13 - License, v. 2.0. If a copy of the MPL was not distributed with this | 13 - License, v. 2.0. If a copy of the MPL was not distributed with this |
14 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | 14 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
15 | 15 |
16 <html xmlns="http://www.w3.org/1999/xhtml"> | 16 <html xmlns="http://www.w3.org/1999/xhtml"> |
17 <head> | 17 <head> |
18 <meta name="viewport" content="width=480; initial-scale=.6667; user-scalable=n
o"/> | 18 <meta name="viewport" content="width=480; initial-scale=.6667; user-scalable=n
o"/> |
19 <title>&aboutPage.title;</title> | 19 <title>&aboutPage.title;</title> |
20 <link rel="stylesheet" href="chrome://browser/skin/aboutPage.css" type="text/c
ss"/> | 20 <link rel="stylesheet" href="chrome://browser/skin/aboutPageAdblockBrowser.css
" type="text/css"/> |
21 <link rel="icon" type="image/png" sizes="64x64" href="chrome://branding/conten
t/favicon64.png" /> | 21 <link rel="icon" type="image/png" sizes="64x64" href="chrome://branding/conten
t/favicon64.png" /> |
22 </head> | 22 </head> |
23 | 23 |
24 <body dir="&locale.dir;"> | 24 <body dir="&locale.dir;"> |
25 <div id="header"> | 25 <div id="banner"> |
26 <div id="wordmark"></div> | 26 <div id="header"> |
| 27 <p id="wordmark">Adblock <b>Browser</b></p> |
27 #expand <p id="version">__MOZ_APP_VERSION__</p> | 28 #expand <p id="version">__MOZ_APP_VERSION__</p> |
28 </div> | 29 </div> |
29 | 30 |
30 <div id="banner"> | |
31 <div id="logo"/> | |
32 #ifdef MOZ_UPDATER | 31 #ifdef MOZ_UPDATER |
33 <div id="updateBox"> | 32 <div id="updateBox"> |
34 <a id="updateLink" href="" onclick="checkForUpdates();">&aboutPage.checkFo
rUpdates.link;</a> | 33 <a id="updateLink" href="" onclick="checkForUpdates();">&aboutPage.checkFo
rUpdates.link;</a> |
35 <span id="update-message-checking">&aboutPage.checkForUpdates.checking;</s
pan> | 34 <span id="update-message-checking">&aboutPage.checkForUpdates.checking;</s
pan> |
36 <span id="update-message-none">&aboutPage.checkForUpdates.none;</span> | 35 <span id="update-message-none">&aboutPage.checkForUpdates.none;</span> |
37 <span id="update-message-found" onclick="downloadUpdate()">&aboutPage.chec
kForUpdates.available2;</span> | 36 <span id="update-message-found" onclick="downloadUpdate()">&aboutPage.chec
kForUpdates.available2;</span> |
38 <span id="update-message-downloading">&aboutPage.checkForUpdates.downloadi
ng;</span> | 37 <span id="update-message-downloading">&aboutPage.checkForUpdates.downloadi
ng;</span> |
39 <span id="update-message-downloaded" onclick="installUpdate()">&aboutPage.
checkForUpdates.downloaded2;</span> | 38 <span id="update-message-downloaded" onclick="installUpdate()">&aboutPage.
checkForUpdates.downloaded2;</span> |
40 </div> | 39 </div> |
41 #endif | 40 #endif |
42 | 41 |
43 <div id="messages"> | 42 <div id="messages"> |
44 <p id="distributionAbout" hidden="true"/> | 43 <p id="distributionAbout" hidden="true"/> |
45 <p id="distributionID" hidden="true"/> | 44 <p id="distributionID" hidden="true"/> |
46 <p id="telemetry" hidden="true"> | 45 <p id="telemetry" hidden="true"> |
47 &aboutPage.warningVersion; | 46 &aboutPage.warningVersion; |
48 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT | 47 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT |
49 &aboutPage.telemetryStart;<a href="http://www.mozilla.org/">&aboutPage.t
elemetryMozillaLink;</a>&aboutPage.telemetryEnd; | 48 &aboutPage.telemetryStart;<a href="http://www.mozilla.org/">&aboutPage.t
elemetryMozillaLink;</a>&aboutPage.telemetryEnd; |
50 #endif | 49 #endif |
51 </p> | 50 </p> |
52 </div> | 51 </div> |
53 | 52 |
54 </div> | 53 </div> |
55 | 54 |
56 <ul id="aboutLinks"> | 55 <ul id="aboutLinks"> |
57 <div class="top-border"></div> | 56 <div class="top-border"></div> |
58 <li><a id="faqURL">&aboutPage.faq.label;</a></li> | 57 <li><a href="https://adblockplus.org/en/faq">&aboutPage.faq.label;</a></li
> |
59 <li><a id="supportURL">&aboutPage.support.label;</a></li> | 58 <li><a href="https://adblockplus.org/en/privacy-policy">&aboutPage.privacy
Policy.label;</a></li> |
60 <li><a id="privacyURL">&aboutPage.privacyPolicy.label;</a></li> | 59 <li><a href="https://adblockplus.org/en/contributors">&aboutPage.credits.l
abel;</a></li> |
61 <li><a href="about:rights">&aboutPage.rights.label;</a></li> | |
62 <li><a id="releaseNotesURL">&aboutPage.relNotes.label;</a></li> | |
63 <li><a id="creditsURL">&aboutPage.credits.label;</a></li> | |
64 <li><a href="about:license">&aboutPage.license.label;</a></li> | 60 <li><a href="about:license">&aboutPage.license.label;</a></li> |
65 <div class="bottom-border"></div> | 61 <div class="bottom-border"></div> |
66 </ul> | 62 </ul> |
67 | 63 |
68 <div id="aboutDetails"> | 64 <div id="aboutDetails"> |
69 <p>&logoTrademark;</p> | 65 <p>&logoTrademark;</p> |
70 </div> | 66 </div> |
71 | 67 |
72 <script type="application/javascript;version=1.8"><![CDATA[ | 68 <script type="application/javascript;version=1.8"><![CDATA[ |
73 let Ci = Components.interfaces, Cc = Components.classes, Cu = Components.u
tils, Cr = Components.results; | 69 let Ci = Components.interfaces, Cc = Components.classes, Cu = Components.u
tils, Cr = Components.results; |
(...skipping 25 matching lines...) Expand all Loading... |
99 | 95 |
100 let distroAbout = Services.prefs.getComplexValue("distribution.about",
Ci.nsISupportsString); | 96 let distroAbout = Services.prefs.getComplexValue("distribution.about",
Ci.nsISupportsString); |
101 let distroField = document.getElementById("distributionAbout"); | 97 let distroField = document.getElementById("distributionAbout"); |
102 distroField.textContent = distroAbout; | 98 distroField.textContent = distroAbout; |
103 distroField.hidden = false; | 99 distroField.hidden = false; |
104 } | 100 } |
105 } catch (e) { | 101 } catch (e) { |
106 // Pref is unset | 102 // Pref is unset |
107 } | 103 } |
108 | 104 |
109 // get URLs from prefs | |
110 try { | |
111 let formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getServ
ice(Ci.nsIURLFormatter); | |
112 | |
113 let links = [ | |
114 {id: "releaseNotesURL", pref: "app.releaseNotesURL"}, | |
115 {id: "supportURL", pref: "app.support.baseURL"}, | |
116 {id: "faqURL", pref: "app.faqURL"}, | |
117 {id: "privacyURL", pref: "app.privacyURL"}, | |
118 {id: "creditsURL", pref: "app.creditsURL"}, | |
119 ]; | |
120 | |
121 links.forEach(function (link) { | |
122 let url = formatter.formatURLPref(link.pref); | |
123 let element = document.getElementById(link.id); | |
124 element.setAttribute("href", url); | |
125 }); | |
126 } catch (ex) {} | |
127 | |
128 #ifdef MOZ_UPDATER | 105 #ifdef MOZ_UPDATER |
129 let Updater = { | 106 let Updater = { |
130 update: null, | 107 update: null, |
131 | 108 |
132 init: function() { | 109 init: function() { |
133 Services.obs.addObserver(this, "Update:CheckResult", false); | 110 Services.obs.addObserver(this, "Update:CheckResult", false); |
134 }, | 111 }, |
135 | 112 |
136 observe: function(aSubject, aTopic, aData) { | 113 observe: function(aSubject, aTopic, aData) { |
137 if (aTopic == "Update:CheckResult") { | 114 if (aTopic == "Update:CheckResult") { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 break; | 182 break; |
206 case "DOWNLOADED": | 183 case "DOWNLOADED": |
207 downloadedSpan.style.display = "block"; | 184 downloadedSpan.style.display = "block"; |
208 break; | 185 break; |
209 } | 186 } |
210 } | 187 } |
211 #endif | 188 #endif |
212 ]]></script> | 189 ]]></script> |
213 </body> | 190 </body> |
214 </html> | 191 </html> |
OLD | NEW |