|
|
@@ -5,11 +5,12 @@ browser.storage.local.get("playlists").then(function (data) {
|
|
|
console.log("pre-populating playlists");
|
|
|
browser.storage.local.set({
|
|
|
playlists: {
|
|
|
- "listening-1": [],
|
|
|
- "listening-2": [],
|
|
|
- "listening-3": [],
|
|
|
- "watching-1": [],
|
|
|
- "watching-2": [],
|
|
|
+ "listening-long": [],
|
|
|
+ "listening-short": [],
|
|
|
+ "listening-misc": [],
|
|
|
+ "watching-short": [],
|
|
|
+ "watching-long": [],
|
|
|
+ "slow-tv": [],
|
|
|
},
|
|
|
});
|
|
|
} else {
|
|
|
@@ -40,23 +41,23 @@ browser.runtime.onInstalled.addListener(() => {
|
|
|
|
|
|
// Sub-menu items
|
|
|
browser.contextMenus.create({
|
|
|
- id: "listening-1",
|
|
|
+ id: "listening-long",
|
|
|
parentId: "my-playlist-menu",
|
|
|
- title: "Listening - 1",
|
|
|
+ title: "Listening - Long",
|
|
|
contexts: ["link"],
|
|
|
});
|
|
|
|
|
|
browser.contextMenus.create({
|
|
|
- id: "listening-2",
|
|
|
+ id: "listening-short",
|
|
|
parentId: "my-playlist-menu",
|
|
|
- title: "Listening - 2",
|
|
|
+ title: "Listening - Short",
|
|
|
contexts: ["link"],
|
|
|
});
|
|
|
|
|
|
browser.contextMenus.create({
|
|
|
- id: "listening-3",
|
|
|
+ id: "listening-misc",
|
|
|
parentId: "my-playlist-menu",
|
|
|
- title: "Listening - 3",
|
|
|
+ title: "Listening - Misc",
|
|
|
contexts: ["link"],
|
|
|
});
|
|
|
|
|
|
@@ -69,16 +70,23 @@ browser.runtime.onInstalled.addListener(() => {
|
|
|
});
|
|
|
|
|
|
browser.contextMenus.create({
|
|
|
- id: "watching-1",
|
|
|
+ id: "watching-short",
|
|
|
parentId: "my-playlist-menu",
|
|
|
- title: "Watching - 1",
|
|
|
+ title: "Watching - Short",
|
|
|
contexts: ["link"],
|
|
|
});
|
|
|
|
|
|
browser.contextMenus.create({
|
|
|
- id: "watching-2",
|
|
|
+ id: "watching-long",
|
|
|
parentId: "my-playlist-menu",
|
|
|
- title: "Watching - 2",
|
|
|
+ title: "Watching - Long",
|
|
|
+ contexts: ["link"],
|
|
|
+ });
|
|
|
+
|
|
|
+ browser.contextMenus.create({
|
|
|
+ id: "slow-tv",
|
|
|
+ parentId: "my-playlist-menu",
|
|
|
+ title: "Slow TV",
|
|
|
contexts: ["link"],
|
|
|
});
|
|
|
});
|