Initial commit

This commit is contained in:
2020-04-11 23:09:11 +03:00
commit 11596c3d6d
5 changed files with 223 additions and 0 deletions

15
background.js Normal file
View File

@@ -0,0 +1,15 @@
chrome.runtime.onInstalled.addListener(function() {
chrome.storage.sync.set({isExtensionOn: true}, function() {
console.log('isExtensionOn: '+true);
});
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [new chrome.declarativeContent.PageStateMatcher({
pageUrl: {hostEquals: 'vk.com'},
})
],
actions: [new chrome.declarativeContent.ShowPageAction()]
}]);
});
});