@vacantthinker/firefox-addon-framework-easy 2026.615.1148 → 2026.616.132

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.
@@ -16,6 +16,12 @@ export declare function serviceGetImageURLYTB(vid: string, imageQuality: ImageQu
16
16
  * @param vid
17
17
  */
18
18
  export declare function serviceGetVideolinkByVid(vid: string): string;
19
+ export interface VideoInfoBase {
20
+ vid: string;
21
+ videolink: string;
22
+ title: string;
23
+ }
24
+ export declare function serviceGetVideoInfoBaseYTB(videolinkOrigin: string, titleOrigin: string): VideoInfoBase | undefined;
19
25
  /**
20
26
  * Extracts video ID and creates a clean YouTube URL.
21
27
  * Supports: youtube.com/watch?v=, youtu.be/, and youtube.com/shorts/
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"serviceOperationYTB.d.ts","sourceRoot":"","sources":["../src/serviceOperationYTB.ts"],"names":[],"mappings":"AAEA,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,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAMtF;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"}
@@ -1,3 +1,4 @@
1
+ import { serviceRemoveIllegalWord } from "./serviceOpContent";
1
2
  export function serviceGetImageURLYTB(vid, imageQuality) {
2
3
  return `https://i.ytimg.com/vi/${vid}/${imageQuality}.jpg`;
3
4
  }
@@ -8,6 +9,14 @@ export function serviceGetImageURLYTB(vid, imageQuality) {
8
9
  export function serviceGetVideolinkByVid(vid) {
9
10
  return `https://www.youtube.com/watch?v=${vid}`;
10
11
  }
12
+ export function serviceGetVideoInfoBaseYTB(videolinkOrigin, titleOrigin) {
13
+ const videolinkYTB = servicePureVideolinkYTB(videolinkOrigin);
14
+ if (!videolinkYTB)
15
+ return;
16
+ const { vid, videolink } = videolinkYTB;
17
+ const title = serviceRemoveIllegalWord(titleOrigin);
18
+ return { vid, videolink, title };
19
+ }
11
20
  /**
12
21
  * Extracts video ID and creates a clean YouTube URL.
13
22
  * Supports: youtube.com/watch?v=, youtu.be/, and youtube.com/shorts/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0615.1148",
3
+ "version": "2026.0616.0132",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",