Skip to content

Commit

Permalink
R: support m.youtube.com
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnyP36 committed Aug 29, 2023
1 parent c9d3294 commit 4986001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifest_v3/js/background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
function ReloadYT() {
chrome.tabs.query( {
url:["*://www.youtube.com/*","*://music.youtube.com/*","*://m.youtube.com/*"]
url:["*://www.youtube.com/*","*://music.youtube.com/*"]
},
tabs => {
for (let tab of tabs) {
Expand All @@ -18,7 +18,7 @@ function EnablePopup() {
{
conditions: [
new chrome.declarativeContent.PageStateMatcher({
pageUrl: { urlMatches: '^(https|http):\/\/(www|music|m)\.youtube\.com' }
pageUrl: { urlMatches: '^(https|http):\/\/(www|music)\.youtube\.com' }
})
],
actions: [new chrome.declarativeContent.ShowAction()]
Expand All @@ -33,4 +33,4 @@ chrome.runtime.onInstalled.addListener(() => {
});
chrome.runtime.onStartup.addListener(() => {
EnablePopup();
});
});

0 comments on commit 4986001

Please sign in to comment.