Skip to content

Commit ffe0199

Browse files
committed
ScriptVault v1.7.2: linter fixes, install page hardening, sort improvements
Linter severity fixes: - Unknown @grant values: warning -> error (won't work at runtime) - Invalid @sandbox values: warning -> error (breaks script execution) - @grant none + GM API usage: info -> warning (API calls will fail) - Removed duplicate entries from hint metaDirectives array - Added GM_webRequest to autocomplete hints and grant values Install page: - Fix XSS in icon error fallback (innerHTML -> textContent) - Fix auto-close race condition (cancel timer on user button click) Dashboard: - Default sort already updated/desc (newest first) — confirmed - Column click on 'updated' now defaults to desc (newest first) Other: - Network log cap increased from 500 to 2000 entries for better DevTools utility
1 parent 6744d42 commit ffe0199

File tree

16 files changed

+36
-34
lines changed

16 files changed

+36
-34
lines changed

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Modern userscript manager built with Chrome Manifest V3. Tampermonkey-inspired functionality with cloud sync, auto-updates, a full dashboard, Monaco editor, DevTools panel, and a persistent side panel.
55

66
## Version
7-
v1.7.1
7+
v1.7.2
88

99
## Tech Stack
1010
- Chrome MV3 extension (JavaScript)
@@ -194,7 +194,7 @@ v1.7.1
194194
- Fixed: NetworkLog duration calculation used `_netLogEntry.timestamp` which was undefined; replaced with dedicated `_netLogStartTime` variable
195195
- Fixed: `state.folders`, `state._collapsedFolders`, `state._lastCheckedId`, `state._quotaWarned` not initialized in dashboard state object
196196
- Fixed: `switchTab('help')` in command palette failed because help tab is a header icon, not a `.tm-tab`; added special case handling
197-
- Verified: All version strings match (v1.7.1 across manifest, manifest-firefox, content.js, popup.js, dashboard.js)
197+
- Verified: All version strings match (v1.7.2 across manifest, manifest-firefox, content.js, popup.js, dashboard.js)
198198
- Verified: All bg/ modules load before background.core.js in build output
199199
- Verified: `escapeHtml` available in popup.js (shared/utils.js loaded first)
200200
- Verified: Column index mapping still correct after pin button addition (pin is inside actions TD, not a new column)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010

1111
<p align="center">
12-
<img src="https://img.shields.io/badge/version-1.7.1-22c55e?style=flat-square" alt="Version">
12+
<img src="https://img.shields.io/badge/version-1.7.2-22c55e?style=flat-square" alt="Version">
1313
<img src="https://img.shields.io/badge/manifest-v3-60a5fa?style=flat-square" alt="Manifest V3">
1414
<img src="https://img.shields.io/badge/license-MIT-orange?style=flat-square" alt="License">
1515
<img src="https://img.shields.io/badge/chrome-120%2B-blue?style=flat-square" alt="Chrome 120+">
@@ -325,6 +325,6 @@ MIT License &mdash; see [LICENSE](LICENSE) for details.
325325
---
326326

327327
<p align="center">
328-
<strong>ScriptVault v1.7.1</strong><br>
328+
<strong>ScriptVault v1.7.2</strong><br>
329329
<em>Your scripts, your rules &mdash; locked down and loaded</em>
330330
</p>

background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ScriptVault v1.7.1 - Background Service Worker
1+
// ScriptVault v1.7.2 - Background Service Worker
22
// Comprehensive userscript manager with cloud sync and auto-updates
33
// NOTE: This file is built from source modules. Edit the individual files in
44
// shared/, modules/, and lib/, then run build-background.sh to regenerate.
@@ -4802,7 +4802,7 @@ const ScriptAnalyzer = {
48024802

48034803
const NetworkLog = {
48044804
_log: [],
4805-
_maxEntries: 500,
4805+
_maxEntries: 2000,
48064806

48074807
add(entry) {
48084808
this._log.unshift({

bg/netlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const NetworkLog = {
55
_log: [],
6-
_maxEntries: 500,
6+
_maxEntries: 2000,
77

88
add(entry) {
99
this._log.unshift({

content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ScriptVault v1.7.1 - Content Script Bridge
1+
// ScriptVault v1.7.2 - Content Script Bridge
22
// Bridges messages between userscripts (USER_SCRIPT world) and background service worker
33

44
(function() {

lib/codemirror/addon/hint/userscript-hint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
{ text: "GM_addElement", displayText: "GM_addElement(tagName, attributes)", className: "CodeMirror-hint" },
4343
{ text: "GM_loadScript", displayText: "GM_loadScript(url, options)", className: "CodeMirror-hint" },
4444
{ text: "GM_audio", displayText: "GM_audio", className: "CodeMirror-hint" },
45+
{ text: "GM_webRequest", displayText: "GM_webRequest(rules, listener)", className: "CodeMirror-hint" },
4546
// Promise-based GM.* API
4647
{ text: "GM.getValue", displayText: "GM.getValue(key, defaultValue)", className: "CodeMirror-hint" },
4748
{ text: "GM.setValue", displayText: "GM.setValue(key, value)", className: "CodeMirror-hint" },
@@ -74,8 +75,7 @@
7475
"@run-in", "@top-level-await", "@license", "@copyright", "@priority",
7576
"@downloadURL", "@updateURL", "@homepageURL", "@supportURL",
7677
"@contributionURL", "@webRequest",
77-
"@license", "@compatible", "@incompatible", "@sandbox",
78-
"@inject-into", "@unwrap", "@antifeature"
78+
"@compatible", "@incompatible", "@unwrap"
7979
];
8080

8181
// @grant values
@@ -92,7 +92,7 @@
9292
"GM_xmlhttpRequest", "GM_download", "GM_log", "GM_info",
9393
"GM_getTab", "GM_saveTab", "GM_getTabs",
9494
"GM_cookie", "GM_focusTab", "GM_closeTab",
95-
"GM_audio", "GM_loadScript",
95+
"GM_audio", "GM_loadScript", "GM_webRequest",
9696
"GM.getValue", "GM.setValue", "GM.deleteValue", "GM.listValues",
9797
"GM.getValues", "GM.setValues", "GM.deleteValues",
9898
"GM.xmlHttpRequest", "GM.notification", "GM.openInTab",

lib/codemirror/addon/lint/userscript-lint.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@
287287
annotations.push({
288288
from: CodeMirror.Pos(i, line.indexOf(value)),
289289
to: CodeMirror.Pos(i, line.length),
290-
message: `Unknown grant: ${value}`,
291-
severity: 'warning'
290+
message: `Unknown grant: ${value}. This will not work at runtime.`,
291+
severity: 'error'
292292
});
293293
}
294294
}
@@ -331,7 +331,7 @@
331331
from: CodeMirror.Pos(i, line.indexOf(value)),
332332
to: CodeMirror.Pos(i, line.length),
333333
message: `Invalid @sandbox value. Valid values: ${VALID_SANDBOX.join(', ')}`,
334-
severity: 'warning'
334+
severity: 'error'
335335
});
336336
}
337337
}
@@ -497,8 +497,8 @@
497497
annotations.push({
498498
from: CodeMirror.Pos(i, match.index),
499499
to: CodeMirror.Pos(i, match.index + api.length),
500-
message: `${api} may not be available with @grant none — add @grant ${api} if needed`,
501-
severity: 'info'
500+
message: `${api} will not work with @grant none — add @grant ${api}`,
501+
severity: 'warning'
502502
});
503503
}
504504
}

manifest-firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_extName__",
4-
"version": "1.7.1",
4+
"version": "1.7.2",
55
"description": "__MSG_extDescription__",
66
"default_locale": "en",
77
"homepage_url": "https://github.com/SysAdminDoc/ScriptVault",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_extName__",
4-
"version": "1.7.1",
4+
"version": "1.7.2",
55
"description": "__MSG_extDescription__",
66
"default_locale": "en",
77
"minimum_chrome_version": "120",

offscreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ScriptVault Offscreen Document v1.7.1
1+
// ScriptVault Offscreen Document v1.7.2
22
// Handles CPU-intensive tasks off the service worker:
33
// - AST-based script analysis (via Acorn)
44
// - 3-way text merge for sync conflict resolution

0 commit comments

Comments
 (0)