@vacantthinker/firefox-addon-framework-easy 2026.614.1632 → 2026.614.2034
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ interface VideoLinkInfoYTB {
|
|
|
4
4
|
}
|
|
5
5
|
export interface PlaylistLinkInfoYTB {
|
|
6
6
|
playlistId: string;
|
|
7
|
-
|
|
7
|
+
playlistLink: string;
|
|
8
8
|
}
|
|
9
9
|
export interface PlaylistInfoYTB extends PlaylistLinkInfoYTB {
|
|
10
10
|
playlistTitle: string;
|
|
@@ -24,6 +24,6 @@ export declare function servicePureVideolinkYTB(videolinkOrigin: string): VideoL
|
|
|
24
24
|
/**
|
|
25
25
|
* Extracts playlist ID and creates a clean YouTube playlist URL.
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
export
|
|
27
|
+
declare function servicePurePlaylistVideolinkYTB(playlistLinkOrigin: string): PlaylistLinkInfoYTB | null;
|
|
28
|
+
export default servicePurePlaylistVideolinkYTB;
|
|
29
29
|
//# sourceMappingURL=serviceOperationYTB.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceOperationYTB.d.ts","sourceRoot":"","sources":["../src/serviceOperationYTB.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;
|
|
1
|
+
{"version":3,"file":"serviceOperationYTB.d.ts","sourceRoot":"","sources":["../src/serviceOperationYTB.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,CAAA;AAEf,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,eAAe,GAC5B,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAmCxF;AAED;;GAEG;AACH,iBAAS,+BAA+B,CAAC,kBAAkB,EAAE,MAAM,GACjE,mBAAmB,GAAG,IAAI,CAqB3B;AAED,eAAe,+BAA+B,CAAA"}
|
|
@@ -46,18 +46,18 @@ export function servicePureVideolinkYTB(videolinkOrigin) {
|
|
|
46
46
|
/**
|
|
47
47
|
* Extracts playlist ID and creates a clean YouTube playlist URL.
|
|
48
48
|
*/
|
|
49
|
-
|
|
50
|
-
if (!
|
|
49
|
+
function servicePurePlaylistVideolinkYTB(playlistLinkOrigin) {
|
|
50
|
+
if (!playlistLinkOrigin) {
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
try {
|
|
54
|
-
const url = new URL(
|
|
54
|
+
const url = new URL(playlistLinkOrigin);
|
|
55
55
|
const playlistId = url.searchParams.get('list');
|
|
56
56
|
if (!playlistId) {
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
-
|
|
60
|
+
playlistLink: `https://www.youtube.com/playlist?list=${playlistId}`,
|
|
61
61
|
playlistId,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -65,3 +65,4 @@ export function servicePurePlaylistVideolinkYTB(videolinkOrigin) {
|
|
|
65
65
|
return null; // Invalid URL
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
export default servicePurePlaylistVideolinkYTB;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vacantthinker/firefox-addon-framework-easy",
|
|
3
|
-
"version": "2026.0614.
|
|
3
|
+
"version": "2026.0614.2034",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"install_package": "npm install",
|
|
17
|
-
"
|
|
17
|
+
"build_ts": "tsc"
|
|
18
18
|
},
|
|
19
19
|
"author": "VacantThinker",
|
|
20
20
|
"license": "AGPL-3.0-only",
|