LEFT | RIGHT |
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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 DTD: 1, | 735 DTD: 1, |
736 MEDIA: 16384, | 736 MEDIA: 16384, |
737 FONT: 32768, | 737 FONT: 32768, |
738 | 738 |
739 BACKGROUND: 4, // Backwards compat, same as IMAGE | 739 BACKGROUND: 4, // Backwards compat, same as IMAGE |
740 | 740 |
741 POPUP: 0x10000000, | 741 POPUP: 0x10000000, |
742 ELEMHIDE: 0x40000000 | 742 ELEMHIDE: 0x40000000 |
743 }; | 743 }; |
744 | 744 |
745 // ELEMHIDE, POPUP option shouldn't be there by default | 745 // DOCUMENT, ELEMHIDE, POPUP options shouldn't be there by default |
746 RegExpFilter.prototype.contentType &= ~(RegExpFilter.typeMap.DOCUMENT | RegExpFi
lter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP); | 746 RegExpFilter.prototype.contentType &= ~(RegExpFilter.typeMap.DOCUMENT | RegExpFi
lter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP); |
747 | 747 |
748 /** | 748 /** |
749 * Class for blocking filters | 749 * Class for blocking filters |
750 * @param {String} text see Filter() | 750 * @param {String} text see Filter() |
751 * @param {String} regexpSource see RegExpFilter() | 751 * @param {String} regexpSource see RegExpFilter() |
752 * @param {Number} contentType see RegExpFilter() | 752 * @param {Number} contentType see RegExpFilter() |
753 * @param {Boolean} matchCase see RegExpFilter() | 753 * @param {Boolean} matchCase see RegExpFilter() |
754 * @param {String} domains see RegExpFilter() | 754 * @param {String} domains see RegExpFilter() |
755 * @param {Boolean} thirdParty see RegExpFilter() | 755 * @param {Boolean} thirdParty see RegExpFilter() |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 function ElemHideException(text, domains, selector) | 930 function ElemHideException(text, domains, selector) |
931 { | 931 { |
932 ElemHideBase.call(this, text, domains, selector); | 932 ElemHideBase.call(this, text, domains, selector); |
933 } | 933 } |
934 exports.ElemHideException = ElemHideException; | 934 exports.ElemHideException = ElemHideException; |
935 | 935 |
936 ElemHideException.prototype = | 936 ElemHideException.prototype = |
937 { | 937 { |
938 __proto__: ElemHideBase.prototype | 938 __proto__: ElemHideBase.prototype |
939 }; | 939 }; |
LEFT | RIGHT |