You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
406 B

5 years ago
5 years ago
  1. chrome.runtime.onInstalled.addListener(function () {
  2. chrome.declarativeContent.onPageChanged.removeRules(undefined, function () {
  3. chrome.declarativeContent.onPageChanged.addRules([{
  4. conditions: [new chrome.declarativeContent.PageStateMatcher({
  5. pageUrl: {hostEquals: 'www.youtube.com'},
  6. })
  7. ],
  8. actions: [new chrome.declarativeContent.ShowPageAction()]
  9. }]);
  10. });
  11. });