Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated background.js #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ chrome.runtime.onInstalled.addListener(function() {
const urlPrerfix = 'https://www.'
const YOUTUBE_VIDEO_URL_START = urlPrerfix + youtubeVideoWatchPageUrl //a youtube url WITHOUT the videoID
const regexToExtractVideoId = /youtube.com\/watch\?v=([^&\?]*)/i //case insensitive regular expression matches youtube.com/watch?v=[VIDEO_ID] & captures the video ID since the ID is either the end of the string or ends at a question mark or ampersand
const MAGIC_URL_POSTFIX = '&list=ULcxqQ59vzyTk' //thing to append to make it play chronologically
const MAGIC_URL_POSTFIX = '&list=UL00000000000' //thing to append to make it play chronologically

//Run code on page action instead of popup
chrome.action.onClicked.addListener(tab=>{
Expand Down