@vacantthinker/firefox-addon-framework-easy 2026.5.2208 → 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 +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.5.2208",
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
@@ -89,4 +89,14 @@ export async function tabOpFocus(tabId) {
89
89
  */
90
90
  export async function tabOpInsertCssCode(tabId, code) {
91
91
  await browser.tabs.insertCSS(tabId, {code})
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})
92
102
  }