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

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/baseOpTab.js +11 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.5.2207",
3
+ "version": "2026.5.2209",
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 'update' && git push",
11
+ "git_acp": "git add . && git commit -m 'add function tabopremovecss()' && git push",
12
12
  "npm_publish": "npm publish",
13
13
  "webpack": "webpack",
14
14
  "webpack_pack": "webpack && node _zipit.js"
package/src/baseOpTab.js CHANGED
@@ -85,12 +85,18 @@ export async function tabOpFocus(tabId) {
85
85
  *
86
86
  * @param{number} tabId
87
87
  * @param {string}code
88
- * @param {function}thenDoWhat
89
88
  * @returns {Promise<void>}
90
89
  */
91
- export async function tabOpInsertCssCode(
92
- tabId, code, thenDoWhat
93
- ) {
90
+ export async function tabOpInsertCssCode(tabId, code) {
94
91
  await browser.tabs.insertCSS(tabId, {code})
95
- thenDoWhat()
92
+ }
93
+
94
+ /**
95
+ *
96
+ * @param{number} tabId
97
+ * @param {string}code
98
+ * @returns {Promise<void>}
99
+ */
100
+ export async function tabOpRemoveCssCode(tabId, code) {
101
+ await browser.tabs.removeCSS(tabId, {code})
96
102
  }