Created
June 30, 2022 11:07
-
-
Save just-jeb/1dc698aa4c9d76fc0c265a621f037841 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
chrome.runtime.onInstalled.addListener(() => { | |
chrome.storage.sync.set({ color: '#3aa757' }); | |
chrome.webNavigation.onCompleted.addListener(() => { | |
chrome.tabs.query({ active: true, currentWindow: true }, ([{ id }]) => { | |
if (id) { | |
chrome.action.disable(id); | |
} | |
}); | |
}, { url: [{ hostContains: 'google.com' }] }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment