LEFT | RIGHT |
1 "use strict"; | 1 "use strict"; |
2 | 2 |
3 let compiled = require("./compiled"); | 3 let compiled = require("compiled"); |
4 | 4 for (let cls of ["Filter", "InvalidFilter", "CommentFilter", "ActiveFilter", |
5 let FilterType = compiled.FilterType; | 5 "RegExpFilter", "BlockingFilter", "WhitelistFilter", "ElemHideBase", |
6 FilterType.INVALID.toString = () => "invalid"; | 6 "ElemHideFilter", "ElemHideException", "CSSPropertyFilter"]) |
7 FilterType.COMMENT.toString = () => "comment"; | 7 { |
8 FilterType.BLOCKING.toString = () => "blocking"; | 8 exports[cls] = compiled[cls]; |
9 FilterType.WHITELIST.toString = () => "whitelist"; | 9 } |
10 FilterType.ELEMHIDE.toString = () => "elemhide"; | |
11 FilterType.ELEMHIDEEXCEPTION.toString = () => "elemhideexception"; | |
12 FilterType.CSSPROPERTY.toString = () => "cssproperty"; | |
13 | |
14 exports.Filter = compiled.Filter; | |
15 exports.InvalidFilter = compiled.InvalidFilter; | |
16 exports.CommentFilter = compiled.CommentFilter; | |
17 exports.ActiveFilter = compiled.ActiveFilter; | |
18 exports.RegExpFilter = compiled.RegExpFilter; | |
19 exports.WhiteListFilter = compiled.WhiteListFilter; | |
20 exports.ElemHideBase = compiled.ElemHideBase; | |
21 exports.ElemHideFilter = compiled.ElemHideFilter; | |
22 exports.ElemHideException = compiled.ElemHideException; | |
23 exports.CSSPropertyFilter = compiled.CSSPropertyFilter; | |
LEFT | RIGHT |