mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 21:05:16 +00:00
Added icons
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
chrome.runtime.onInstalled.addListener(function() {
|
||||
chrome.storage.sync.set({isExtensionOn: true}, function() {
|
||||
console.log('isExtensionOn: '+true);
|
||||
});
|
||||
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()]
|
||||
}]);
|
||||
});
|
||||
});
|
||||
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
|
||||
chrome.declarativeContent.onPageChanged.addRules([{
|
||||
conditions: [new chrome.declarativeContent.PageStateMatcher({
|
||||
pageUrl: {hostEquals: 'vk.com'},
|
||||
})
|
||||
],
|
||||
actions: [new chrome.declarativeContent.ShowPageAction()]
|
||||
}]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user