Created
April 3, 2015 07:08
-
-
Save sibnerian/9a30943dd0877f71de8b 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
// when the extention is installed... | |
chrome.runtime.onInstalled.addListener(function() { | |
// replace all existing rules... | |
chrome.declarativeContent.onPageChanged.removeRules(undefined, function () { | |
// with these new rules: | |
chrome.declarativeContent.onPageChanged.addRules([ | |
{ | |
conditions: [], | |
actions: [ new chrome.declarativeContent.ShowPageAction() ] | |
} | |
]); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment