| Index: lib/cssInjection.js |
| =================================================================== |
| --- a/lib/cssInjection.js |
| +++ b/lib/cssInjection.js |
| @@ -12,26 +12,24 @@ |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| /** @module cssInjection */ |
| -"use strict"; |
| - |
| -const {RegExpFilter} = require("filterClasses"); |
| -const {ElemHide} = require("elemHide"); |
| -const {ElemHideEmulation} = require("elemHideEmulation"); |
| -const {checkWhitelisted} = require("whitelisting"); |
| -const {extractHostFromFrame} = require("url"); |
| -const {port} = require("messaging"); |
| -const devtools = require("devtools"); |
| -const info = require("info"); |
| +import {RegExpFilter} from "filterClasses"; |
| +import {ElemHide} from "elemHide"; |
| +import {ElemHideEmulation} from "elemHideEmulation"; |
| +import {checkWhitelisted} from "whitelisting"; |
| +import {extractHostFromFrame} from "url"; |
| +import {port} from "messaging"; |
| +import devtools from "devtools"; |
| +import info from "info"; |
| // Chromium's support for tabs.removeCSS is still a work in progress and the |
| // API is likely to be different from Firefox's; for now we just don't use it |
| // at all, even if it's available. |
| // See https://crbug.com/608854 |
| const styleSheetRemovalSupported = info.platform == "gecko"; |
| const selectorGroupSize = 1024; |