| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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/aboutAdblockBrowserPage.css " type="text/css"/> | 20 <link rel="stylesheet" href="chrome://browser/skin/aboutPageAdblockBrowser.css " type="text/css"/> |
|
Felix Dahlke
2015/05/06 20:35:07
Nit: I guess I'd call it aboutPageAdblockBrowser.c
René Jeschke
2015/05/06 21:45:00
Too late to argue about this, though the name does
Felix Dahlke
2015/05/06 21:48:47
:D
| |
| 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="banner"> | 25 <div id="banner"> |
| 26 <div id="header"> | 26 <div id="header"> |
| 27 <p id="wordmark">Adblock <b>Browser</b></p> | 27 <p id="wordmark">Adblock <b>Browser</b></p> |
| 28 #expand <p id="version">__MOZ_APP_VERSION__</p> | 28 #expand <p id="version">__MOZ_APP_VERSION__</p> |
| 29 </div> | 29 </div> |
| 30 | 30 |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 47 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT | 47 #ifdef MOZ_TELEMETRY_ON_BY_DEFAULT |
| 48 &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; |
| 49 #endif | 49 #endif |
| 50 </p> | 50 </p> |
| 51 </div> | 51 </div> |
| 52 | 52 |
| 53 </div> | 53 </div> |
| 54 | 54 |
| 55 <ul id="aboutLinks"> | 55 <ul id="aboutLinks"> |
| 56 <div class="top-border"></div> | 56 <div class="top-border"></div> |
| 57 <li><a id="faqURL">&aboutPage.faq.label;</a></li> | 57 <li><a href="https://adblockplus.org/en/faq">&aboutPage.faq.label;</a></li > |
| 58 <li><a id="privacyURL">&aboutPage.privacyPolicy.label;</a></li> | 58 <li><a href="https://adblockplus.org/en/privacy-policy">&aboutPage.privacy Policy.label;</a></li> |
| 59 <li><a id="creditsURL">&aboutPage.credits.label;</a></li> | 59 <li><a href="https://adblockplus.org/en/contributors">&aboutPage.credits.l abel;</a></li> |
| 60 <li><a href="about:license">&aboutPage.license.label;</a></li> | 60 <li><a href="about:license">&aboutPage.license.label;</a></li> |
| 61 <div class="bottom-border"></div> | 61 <div class="bottom-border"></div> |
| 62 </ul> | 62 </ul> |
| 63 | 63 |
| 64 <div id="aboutDetails"> | 64 <div id="aboutDetails"> |
| 65 <p>&logoTrademark;</p> | 65 <p>&logoTrademark;</p> |
| 66 </div> | 66 </div> |
| 67 | 67 |
| 68 <script type="application/javascript;version=1.8"><![CDATA[ | 68 <script type="application/javascript;version=1.8"><![CDATA[ |
| 69 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 24 matching lines...) Expand all Loading... | |
| 94 distroIdField.hidden = false; | 94 distroIdField.hidden = false; |
| 95 | 95 |
| 96 let distroAbout = Services.prefs.getComplexValue("distribution.about", Ci.nsISupportsString); | 96 let distroAbout = Services.prefs.getComplexValue("distribution.about", Ci.nsISupportsString); |
| 97 let distroField = document.getElementById("distributionAbout"); | 97 let distroField = document.getElementById("distributionAbout"); |
| 98 distroField.textContent = distroAbout; | 98 distroField.textContent = distroAbout; |
| 99 distroField.hidden = false; | 99 distroField.hidden = false; |
| 100 } | 100 } |
| 101 } catch (e) { | 101 } catch (e) { |
| 102 // Pref is unset | 102 // Pref is unset |
| 103 } | 103 } |
| 104 | |
| 105 // get URLs from prefs | |
| 106 try { | |
| 107 let formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getServ ice(Ci.nsIURLFormatter); | |
| 108 | |
| 109 let links = [ | |
| 110 {id: "faqURL", pref: "app.faqURL"}, | |
| 111 {id: "privacyURL", pref: "app.privacyURL"}, | |
| 112 {id: "creditsURL", pref: "app.creditsURL"}, | |
| 113 ]; | |
| 114 | |
| 115 links.forEach(function (link) { | |
| 116 let url = formatter.formatURLPref(link.pref); | |
| 117 let element = document.getElementById(link.id); | |
| 118 element.setAttribute("href", url); | |
| 119 }); | |
| 120 } catch (ex) {} | |
| 121 | 104 |
| 122 #ifdef MOZ_UPDATER | 105 #ifdef MOZ_UPDATER |
| 123 let Updater = { | 106 let Updater = { |
| 124 update: null, | 107 update: null, |
| 125 | 108 |
| 126 init: function() { | 109 init: function() { |
| 127 Services.obs.addObserver(this, "Update:CheckResult", false); | 110 Services.obs.addObserver(this, "Update:CheckResult", false); |
| 128 }, | 111 }, |
| 129 | 112 |
| 130 observe: function(aSubject, aTopic, aData) { | 113 observe: function(aSubject, aTopic, aData) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 break; | 182 break; |
| 200 case "DOWNLOADED": | 183 case "DOWNLOADED": |
| 201 downloadedSpan.style.display = "block"; | 184 downloadedSpan.style.display = "block"; |
| 202 break; | 185 break; |
| 203 } | 186 } |
| 204 } | 187 } |
| 205 #endif | 188 #endif |
| 206 ]]></script> | 189 ]]></script> |
| 207 </body> | 190 </body> |
| 208 </html> | 191 </html> |
| LEFT | RIGHT |