Update background.js

This commit is contained in:
binarygeek119 2021-08-26 19:01:54 -05:00 committed by GitHub
parent 458ec6f1eb
commit 2f4bbe53d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ chrome.runtime.onInstalled.addListener(function () {
targetUrlPatterns: [
'https://www.youtube.com/*',
'https://m.youtube.com/*',
'https://youtu.be/*'
'https://youtu.be/*',
'https://pornhub.com/*',
'https://xhamster.com/*'
],
contexts: ['link'],
});
@ -70,4 +72,4 @@ function openTab(url, currentTab) {
chrome.tabs.create({url: url, index: currentTab.index + 1});
}
});
}
}