Repository navigation
Userscripts
Popelyshyn Ruslan edited this page Aug 26, 2026
·
3 revisions
Real Chrome/WebExtensions are not available on this CEF OSR embedding (see Limitations). Instead: a Tampermonkey-style runner.
- Put a
.jsfile in~/.config/spatial-browser/userscripts/ - Open Ctrl+Shift+U → Reload (or just open the list — it reloads from disk)
// @name Greyscale reddit
// @match *://*.reddit.com/*
// @exclude *://*.reddit.com/r/all/*
// @run-at document-end
(function () {
document.body.style.filter = 'grayscale(1)';
})();| Tag | Meaning |
|---|---|
@name |
Display name in the list (default: filename) |
@match |
Wildcard glob against the full URL (required; any of N matches) |
@exclude |
Same glob language; if any hits, script does not run |
@run-at |
document-start, document-end (default), or document-idle
|
Match patterns are plain * globs, not the full WebExtension parser. *.example.com also matches the apex host (e.g. https://github.com/...).
Injected before your code:
GM_addStyle(css)GM_getValue(key, default)-
GM_setValue(key, value)— backed bylocalStoragekeys prefixedgm:
Enough for many GreasyFork scripts; not a full Violentmonkey/Tampermonkey API (GM_xmlhttpRequest, @grant, etc. are absent).
- Toggle enable/disable (persisted in
userscripts_state.json, file stays on disk) - Reload — re-read the directory without restarting the browser
-
Open folder —
xdg-openon the userscripts directory
Disabled scripts are skipped at inject time.