Skip to content

Commit 6f3dd81

Browse files
committed
fix: able to tell a YouTube video is playing when the URL contains other params
1 parent 55d79d4 commit 6f3dd81

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

background/sources/videos/youtube.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ chrome.webRequest.onBeforeSendHeaders.addListener((details) => {
2424

2525
export default {
2626
patterns: [
27-
'*://www.youtube.com/watch?v=*',
28-
'*://m.youtube.com/watch?v=*',
27+
'*://www.youtube.com/watch?*v=*',
28+
'*://m.youtube.com/watch?*v=*',
2929
'*://youtu.be/*',
30-
'*://music.youtube.com/watch?v=*',
31-
'*://gaming.youtube.com/watch?v=*',
30+
'*://music.youtube.com/watch?*v=*',
31+
'*://gaming.youtube.com/watch?*v=*',
3232
],
3333
getVideo: async (url) => {
3434
const id = ytdl.getURLVideoID(url);

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"content_scripts": [
3333
{
3434
"matches": [
35-
"https://www.youtube.com/watch?v=*"
35+
"https://*.youtube.com/watch?*v=*"
3636
],
3737
"js": [
3838
"util/time.js",

0 commit comments

Comments
 (0)