| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 */ | 759 */ |
| 760 RegExpFilter.typeMap = { | 760 RegExpFilter.typeMap = { |
| 761 OTHER: 1, | 761 OTHER: 1, |
| 762 SCRIPT: 2, | 762 SCRIPT: 2, |
| 763 IMAGE: 4, | 763 IMAGE: 4, |
| 764 STYLESHEET: 8, | 764 STYLESHEET: 8, |
| 765 OBJECT: 16, | 765 OBJECT: 16, |
| 766 SUBDOCUMENT: 32, | 766 SUBDOCUMENT: 32, |
| 767 DOCUMENT: 64, | 767 DOCUMENT: 64, |
| 768 XBL: 1, | 768 XBL: 1, |
| 769 PING: 1, | 769 PING: 1024, |
| 770 XMLHTTPREQUEST: 2048, | 770 XMLHTTPREQUEST: 2048, |
| 771 OBJECT_SUBREQUEST: 4096, | 771 OBJECT_SUBREQUEST: 4096, |
| 772 DTD: 1, | 772 DTD: 1, |
| 773 MEDIA: 16384, | 773 MEDIA: 16384, |
| 774 FONT: 32768, | 774 FONT: 32768, |
| 775 | 775 |
| 776 BACKGROUND: 4, // Backwards compat, same as IMAGE | 776 BACKGROUND: 4, // Backwards compat, same as IMAGE |
| 777 | 777 |
| 778 POPUP: 0x10000000, | 778 POPUP: 0x10000000, |
| 779 GENERICBLOCK: 0x20000000, | 779 GENERICBLOCK: 0x20000000, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 // several times on Safari, due to WebKit bug 132872 | 1061 // several times on Safari, due to WebKit bug 132872 |
| 1062 let prop = Object.getOwnPropertyDescriptor(this, "regexpString"); | 1062 let prop = Object.getOwnPropertyDescriptor(this, "regexpString"); |
| 1063 if (prop) | 1063 if (prop) |
| 1064 return prop.value; | 1064 return prop.value; |
| 1065 | 1065 |
| 1066 let regexp = Filter.toRegExp(this.regexpSource); | 1066 let regexp = Filter.toRegExp(this.regexpSource); |
| 1067 Object.defineProperty(this, "regexpString", {value: regexp}); | 1067 Object.defineProperty(this, "regexpString", {value: regexp}); |
| 1068 return regexp; | 1068 return regexp; |
| 1069 } | 1069 } |
| 1070 }; | 1070 }; |
| OLD | NEW |