@vacantthinker/firefox-addon-framework-easy 2026.606.1403 → 2026.607.2128

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/README.md CHANGED
@@ -90,6 +90,7 @@ export class DomainORM extends BaseORM { }
90
90
  export async function generateHtmlByUserSettings(
91
91
  userSettings,
92
92
  radioItemClickCallback,
93
+ checkboxItemClickCallback,
93
94
  ) { }
94
95
 
95
96
  export function generateMkvScriptForSystemWindows({ }
@@ -138,6 +139,8 @@ export async function tabOpQueryUrlThenRemove(urlQuery) { }
138
139
 
139
140
  export async function tabOpReload(tabId) { }
140
141
 
142
+ export async function tabOpReloadByPassCacheTrue(tabId) { }
143
+
141
144
  export async function tabOpRemove(tabId) { }
142
145
 
143
146
  export async function tabOpHide(tabId) { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0606.1403",
3
+ "version": "2026.0607.2128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -25,7 +25,6 @@ export function browserRuntimeOnMessageCommon(act, message, sendResponse) {
25
25
  break;
26
26
  case 'actMarco': //Marco Polo pool game
27
27
  sendResponse({status: 'Polo'});
28
- return true;
29
28
  break;
30
29
  case 'actRequestTabIdTabUrl':
31
30
  sendResponse(message);
package/src/generate.js CHANGED
@@ -19,6 +19,7 @@ function debounce(func, wait) {
19
19
  export async function generateHtmlByUserSettings(
20
20
  userSettings,
21
21
  radioItemClickCallback,
22
+ checkboxItemClickCallback,
22
23
  ) {
23
24
  const elementsMap = {};
24
25
 
@@ -83,11 +84,14 @@ export async function generateHtmlByUserSettings(
83
84
  const allCheckboxes = eleWrap.querySelectorAll(
84
85
  'input[type="checkbox"]',
85
86
  );
86
- const valueNew = Array.from(allCheckboxes).
87
- filter((cb) => cb.checked).
88
- map((cb) => cb.value);
87
+ const valueNew = Array.from(allCheckboxes)
88
+ .filter((cb) => cb.checked)
89
+ .map((cb) => cb.value);
89
90
 
90
91
  await stoOpSet(storageKey, valueNew);
92
+ if (typeof checkboxItemClickCallback === 'function') {
93
+ checkboxItemClickCallback(storageKey, option);
94
+ }
91
95
  triggerVisibility(storageKey, valueNew);
92
96
  });
93
97
  }
package/src/opTab.js CHANGED
@@ -111,7 +111,16 @@ export async function tabOpQueryUrlThenRemove(urlQuery) {
111
111
  * @returns {Promise<void>}
112
112
  */
113
113
  export async function tabOpReload(tabId) {
114
- await browser.tabs.reload(tabId);
114
+ await browser.tabs.reload(tabId, {bypassCache: true});
115
+ }
116
+
117
+ /**
118
+ *
119
+ * @param tabId{number}
120
+ * @returns {Promise<void>}
121
+ */
122
+ export async function tabOpReloadByPassCacheTrue(tabId) {
123
+ await browser.tabs.reload(tabId, {bypassCache: true});
115
124
  }
116
125
 
117
126
  /**