| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 /** | 55 /** |
| 56 * Filter type as a string, e.g. "blocking". | 56 * Filter type as a string, e.g. "blocking". |
| 57 * @type {string} | 57 * @type {string} |
| 58 */ | 58 */ |
| 59 get type() | 59 get type() |
| 60 { | 60 { |
| 61 throw new Error("Please define filter type in the subclass"); | 61 throw new Error("Please define filter type in the subclass"); |
| 62 }, | 62 }, |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Whether the filter must come from a trusted subscription. |
| 66 * @type {boolean} |
| 67 */ |
| 68 needsTrust: false, |
| 69 |
| 70 /** |
| 65 * Serializes the filter to an array of strings for writing out on the disk. | 71 * Serializes the filter to an array of strings for writing out on the disk. |
| 66 * @param {string[]} buffer buffer to push the serialization results into | 72 * @param {string[]} buffer buffer to push the serialization results into |
| 67 */ | 73 */ |
| 68 serialize(buffer) | 74 serialize(buffer) |
| 69 { | 75 { |
| 70 buffer.push("[Filter]"); | 76 buffer.push("[Filter]"); |
| 71 buffer.push("text=" + this.text); | 77 buffer.push("text=" + this.text); |
| 72 }, | 78 }, |
| 73 | 79 |
| 74 toString() | 80 toString() |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 */ | 1119 */ |
| 1114 function ElemHideEmulationFilter(text, domains, selector) | 1120 function ElemHideEmulationFilter(text, domains, selector) |
| 1115 { | 1121 { |
| 1116 ElemHideBase.call(this, text, domains, selector); | 1122 ElemHideBase.call(this, text, domains, selector); |
| 1117 } | 1123 } |
| 1118 exports.ElemHideEmulationFilter = ElemHideEmulationFilter; | 1124 exports.ElemHideEmulationFilter = ElemHideEmulationFilter; |
| 1119 | 1125 |
| 1120 ElemHideEmulationFilter.prototype = extend(ElemHideBase, { | 1126 ElemHideEmulationFilter.prototype = extend(ElemHideBase, { |
| 1121 type: "elemhideemulation" | 1127 type: "elemhideemulation" |
| 1122 }); | 1128 }); |
| OLD | NEW |