chrome.runtime.onInstalled.addListener(function () { | |
chrome.action.disable(); | |
chrome.declarativeContent.onPageChanged.removeRules(undefined, function () { | |
chrome.declarativeContent.onPageChanged.addRules([ | |
{ | |
conditions: [ | |
new chrome.declarativeContent.PageStateMatcher({ | |
pageUrl: { schemes: ["http", "https"] }, | |
}), | |
], | |
actions: [new chrome.declarativeContent.ShowAction()], | |
}, | |
]); | |
}); | |
}); |