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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 }; | 156 }; |
157 | 157 |
158 modules.info = { | 158 modules.info = { |
159 platform: "gecko", | 159 platform: "gecko", |
160 platformVersion: "34.0", | 160 platformVersion: "34.0", |
161 application: "firefox", | 161 application: "firefox", |
162 applicationVersion: "34.0" | 162 applicationVersion: "34.0" |
163 }; | 163 }; |
164 updateFromURL(modules.info); | 164 updateFromURL(modules.info); |
165 | 165 |
166 global.openOptions = function() | |
167 { | |
168 window.open("http://example.com/options.html", "_blank"); | |
169 }; | |
170 | |
171 global.Services = { | 166 global.Services = { |
172 vc: { | 167 vc: { |
173 compare: function(v1, v2) | 168 compare: function(v1, v2) |
174 { | 169 { |
175 return parseFloat(v1) - parseFloat(v2); | 170 return parseFloat(v1) - parseFloat(v2); |
176 } | 171 } |
177 } | 172 } |
178 }; | 173 }; |
179 | 174 |
180 var issues = {seenDataCorruption: false, filterlistsReinitialized: false}; | 175 var issues = {seenDataCorruption: false, filterlistsReinitialized: false}; |
181 updateFromURL(issues); | 176 updateFromURL(issues); |
182 global.seenDataCorruption = issues.seenDataCorruption; | 177 global.seenDataCorruption = issues.seenDataCorruption; |
183 global.filterlistsReinitialized = issues.filterlistsReinitialized; | 178 global.filterlistsReinitialized = issues.filterlistsReinitialized; |
184 })(this); | 179 })(this); |
OLD | NEW |