SN Commands 版本历史 - 4 个版本
SN Commands 作者: davagni
SN Commands 版本历史 - 4 个版本
小心旧版本!显示这些版本是为了测试和参考目的。您应该始终使用附加组件的最新版本。
最新版本
版本 4.9.0
发布于 2026年11月3日 - 307.94 KB适用于 Firefox 140.0 及更高版本, Firefox for Android 142.0 及更高版本Fixed
Pinned commands now run reliably on every ServiceNow UI. Clicking a pinned command from the dock previously ran its script in the page's top frame only. In the classic UI the record form, g_form and the open list all live inside the #gsft_main iframe, so record-aware commands (copysysid, sysinfo, email, sowview, .) either did nothing or only partly worked. The background worker now probes every frame, scores each by how much ServiceNow form context it exposes, and runs the command in the single best frame - falling back to the top frame on Next Experience / workspace. The popup and settings ""? Run"" buttons use the same frame resolution.
AddedTags (command groups). A command can carry any number of comma-separated tags (edited in the popup or settings page). A tag bar under the search box pins a whole set at once: click a tag for a clean switch (unpin everything, then pin only that tag's commands), Shift+click to add on top without clearing, or click an active tag to unpin just that set.
Unpin all. One-click button in the tag bar clears every pin. Each tag chip shows how many of its commands are currently pinned.
Tags show as chips on each command row, are searchable, and carry through import/export alongside pin state.源代码遵循 仅 GNU 通用公共许可证 v3.0 发布
较早版本
版本 4.8.4
发布于 2026年10月28日 - 301.93 KB适用于 Firefox 140.0 及更高版本, Firefox for Android 142.0 及更高版本New: pinned command dock- Star any command in the popup or Settings to pin it to the page; click the star again to unpin it.
- Pinned commands appear in a compact dock at the left edge of ServiceNow pages, vertically centred, so your most-used commands are one click away.
- Drag the dock by its header to put it wherever you like, or focus the header and use the arrow keys (hold Shift for larger steps). The position is saved and restored across reloads, tabs and browser restarts.
- The dock follows the extension's light/dark theme, updates live when you pin, unpin or edit a command, and disappears when nothing is pinned.
- Only appears on pages recognised as a ServiceNow instance, and works in both Next Experience / workspace and the classic UI.
- Import/export now includes pin state; merging by name keeps your existing local pins.
Your pins and the dock position are stored only in the browser's local extension storage. Nothing is transmitted anywhere.源代码遵循 仅 GNU 通用公共许可证 v3.0 发布
版本 4.8.0
发布于 2026年8月25日 - 283.18 KB适用于 Firefox 140.0 及更高版本, Firefox for Android 142.0 及更高版本[4.8.0]
Added
• Page Helpers
Three independent helpers, all OFF by default. Available under Settings → ⚡ Helpers.
• Keep my session alive
Pings a lightweight endpoint on the current ServiceNow instance every N minutes (1–60, default 2), plus once when returning to a backgrounded tab.
• Show reopen count on incidents
Reads reopen_count when an incident form loads and displays a native banner: green at zero and red above zero. Tracks the last announced record and follows SPA navigation.
• Ctrl+Enter posts a work note
Uses Cmd+Enter on macOS. Routes through Angular's handler, with a click fallback to avoid stale activity-stream scope.
• helpers.js
Contains helper definitions and injected scripts. Shared by the content script and settings page. Settings rows are generated from metadata, making new helpers a one-file change.
• check-wiring.js
Added validation for page helpers, including syntax, double-injection guards, live ON/OFF attributes, default-off settings, keep-alive interval clamping, instance-relative endpoints, and matching helper metadata/default settings.
Changed
• Content scripts
Registered as ['themes.js', 'helpers.js', 'content.js'] in both manifests and dynamic registration for custom/on-premise domains.
• Privacy policy
Updated to clarify network behaviour. The extension makes no requests out of the box. When enabled, helpers communicate only with the user's own ServiceNow instance. Nothing is sent to the developer or any third party, and there is no extension backend/server.
Notes
• Two helpers run in the page's MAIN world because the isolated content-script world cannot access g_form, g_ck, or angular.
• Keep-alive remains in the content script so its timer survives with the tab. An MV3 service worker may be terminated after a short idle period and is unsuitable for a minutes-long timer.
• Injected helpers run in every frame because Classic UI keeps the form/Post button inside the gsft_main iframe. Keep-alive is top-frame only to prevent duplicate pings.
• Disabling an injected helper does not require a reload. Its state is mirrored to and checked by the resident script before acting.
• Each helper has its own IIFE and error handling so a helper failure cannot take down the command palette or page theme.
Repository
• GitHub: https://github.com/aryanarin/sncommands/源代码遵循 仅 GNU 通用公共许可证 v3.0 发布
版本 4.5.0
发布于 2026年7月5日 - 260.14 KB适用于 Firefox 140.0 及更高版本, Firefox for Android 142.0 及更高版本Initial public release of SN Commands v4.5.0.- Custom backslash () command palette for ServiceNow — run saved JavaScript snippets instantly on any page
- Built-in code editor with syntax highlighting, bracket matching, and search (powered by CodeMirror)
- One-click code formatting (via js-beautify)
- Works on cloud and on-prem ServiceNow instances
- Settings page to create, edit, and organize your commands
源代码遵循 MIT 许可证 发布