| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 { | 36 { |
| 37 feature: "tracking", | 37 feature: "tracking", |
| 38 homepage: "https://easylist.adblockplus.org/", | 38 homepage: "https://easylist.adblockplus.org/", |
| 39 title: "EasyPrivacy", | 39 title: "EasyPrivacy", |
| 40 url: "https://easylist-downloads.adblockplus.org/easyprivacy.txt" | 40 url: "https://easylist-downloads.adblockplus.org/easyprivacy.txt" |
| 41 } | 41 } |
| 42 ]; | 42 ]; |
| 43 | 43 |
| 44 function onDOMLoaded() | 44 function onDOMLoaded() |
| 45 { | 45 { |
| 46 var locale = require("utils").Utils.appLocale; | |
| 47 document.documentElement.setAttribute("lang", locale); | |
| 48 | |
| 49 // Set up URLs | 46 // Set up URLs |
| 50 var donateLink = E("donate"); | 47 var donateLink = E("donate"); |
| 51 donateLink.href = Utils.getDocLink("donate"); | 48 donateLink.href = Utils.getDocLink("donate"); |
| 52 | 49 |
| 53 var contributors = E("contributors"); | 50 var contributors = E("contributors"); |
| 54 contributors.href = Utils.getDocLink("contributors"); | 51 contributors.href = Utils.getDocLink("contributors"); |
| 55 | 52 |
| 56 setLinks("acceptableAdsExplanation", Utils.getDocLink("acceptable_ads_criter
ia"), openFilters); | 53 setLinks("acceptableAdsExplanation", Utils.getDocLink("acceptable_ads_criter
ia"), openFilters); |
| 57 setLinks("share-headline", Utils.getDocLink("contribute")); | 54 setLinks("share-headline", Utils.getDocLink("contribute")); |
| 58 | 55 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 { | 241 { |
| 245 var button = E("toggle-" + feature); | 242 var button = E("toggle-" + feature); |
| 246 if (isEnabled) | 243 if (isEnabled) |
| 247 button.classList.remove("off"); | 244 button.classList.remove("off"); |
| 248 else | 245 else |
| 249 button.classList.add("off"); | 246 button.classList.add("off"); |
| 250 } | 247 } |
| 251 | 248 |
| 252 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 249 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
| 253 })(); | 250 })(); |
| OLD | NEW |