| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 Cu.reportError(e); | 372 Cu.reportError(e); |
| 373 } | 373 } |
| 374 ElemHide.applied = false; | 374 ElemHide.applied = false; |
| 375 } | 375 } |
| 376 }, | 376 }, |
| 377 | 377 |
| 378 /** | 378 /** |
| 379 * Retrieves the currently applied stylesheet URL | 379 * Retrieves the currently applied stylesheet URL |
| 380 * @type String | 380 * @type String |
| 381 */ | 381 */ |
| 382 get styleURL() ElemHide.applied ? styleURL.spec : null, | 382 get styleURL() |
| 383 { |
| 384 return ElemHide.applied ? styleURL.spec : null; |
| 385 }, |
| 383 | 386 |
| 384 /** | 387 /** |
| 385 * Retrieves an element hiding filter by the corresponding protocol key | 388 * Retrieves an element hiding filter by the corresponding protocol key |
| 386 */ | 389 */ |
| 387 getFilterByKey: function(/**String*/ key) /**Filter*/ | 390 getFilterByKey: function(/**String*/ key) /**Filter*/ |
| 388 { | 391 { |
| 389 return (key in filterByKey ? filterByKey[key] : null); | 392 return (key in filterByKey ? filterByKey[key] : null); |
| 390 }, | 393 }, |
| 391 | 394 |
| 392 /** | 395 /** |
| (...skipping 14 matching lines...) Expand all Loading... |
| 407 | 410 |
| 408 if (specificOnly && (!domains || domains[""])) | 411 if (specificOnly && (!domains || domains[""])) |
| 409 continue; | 412 continue; |
| 410 | 413 |
| 411 if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain)) | 414 if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain)) |
| 412 result.push(filter.selector); | 415 result.push(filter.selector); |
| 413 } | 416 } |
| 414 return result; | 417 return result; |
| 415 } | 418 } |
| 416 }; | 419 }; |
| OLD | NEW |