Created
February 15, 2017 23:45
-
-
Save valenting/f64b255487817440dc126582c4689e88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/script.js b/js/script.js | |
index 419ea1b..4f83772 100644 | |
--- a/js/script.js | |
+++ b/js/script.js | |
@@ -1,4 +1,5 @@ | |
-chrome.extension.sendMessage({}, function(response) { | |
+let target = chrome.runtime || browser.runtime; | |
+target.sendMessage({}, function(response) { | |
var readyStateCheckInterval = setInterval(function() { | |
if (document.readyState === "complete") { | |
jQuery.expr[":"].icontains = jQuery.expr.createPseudo(function (arg) { | |
diff --git a/manifest.json b/manifest.json | |
index 48b80d0..1a3327b 100644 | |
--- a/manifest.json | |
+++ b/manifest.json | |
@@ -31,5 +31,10 @@ | |
], | |
"run_at": "document_end" | |
} | |
- ] | |
+ ], | |
+ "applications": { | |
+ "gecko": { | |
+ "id": "{c7a6dc04-70bb-4518-95ca-83515d1e8046}" | |
+ } | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment