@vacantthinker/firefox-addon-framework-easy 2026.5.2209 → 2026.5.2211

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.5.2209",
3
+ "version": "2026.5.2211",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "npm_install": "npm install",
11
- "git_acp": "git add . && git commit -m 'add function tabopremovecss()' && git push",
11
+ "git_acp": "git add . && git commit -m 'add function servicePureVideolinkYTB()' && git push",
12
12
  "npm_publish": "npm publish",
13
13
  "webpack": "webpack",
14
14
  "webpack_pack": "webpack && node _zipit.js"
package/src/baseORM.js CHANGED
@@ -1,4 +1,4 @@
1
- import {stoOpCheck, stoOpGet, stoOpQuery_startsWith, stoOpRem, stoOpSet} from "./baseOp.js";
1
+ import {stoOpCheck, stoOpGet, stoOpQuery_startsWith, stoOpRem, stoOpSet} from "./baseOpStorage.js";
2
2
 
3
3
 
4
4
  /**
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ * @param {string}videolinkOrigin
4
+ * @returns {{
5
+ * videolink: string,
6
+ * vid: string
7
+ *
8
+ * }|null}
9
+ */
10
+ export function servicePureVideolinkYTB(videolinkOrigin) {
11
+ if (!videolinkOrigin) {
12
+ return null;
13
+ }
14
+
15
+ const u = new URL(videolinkOrigin)
16
+ let vid = u.searchParams.get('v');
17
+
18
+ let searchValue = '/shorts/';
19
+ if (u.pathname.startsWith(searchValue)) {
20
+ vid = u.pathname.replace(searchValue, '')
21
+ }
22
+ let videolink = `https://www.youtube.com/watch?v=${vid}`
23
+ return {videolink, vid}
24
+ }