Index: lib/cssInjection.js |
=================================================================== |
--- a/lib/cssInjection.js |
+++ b/lib/cssInjection.js |
@@ -22,22 +22,22 @@ |
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 userStyleSheetsSupported = "extensionTypes" in chrome && |
- "CSSOrigin" in chrome.extensionTypes; |
+const userStyleSheetsSupported = "extensionTypes" in browser && |
+ "CSSOrigin" in browser.extensionTypes; |
function hideElements(tabId, frameId, selectors) |
{ |
- chrome.tabs.insertCSS(tabId, { |
+ browser.tabs.insertCSS(tabId, { |
code: selectors.join(", ") + "{display: none !important;}", |
cssOrigin: "user", |
frameId, |
matchAboutBlank: true, |
runAt: "document_start" |
}); |
} |