Repository navigation
Userscripts
Loafer19 edited this page Oct 11, 2026
·
3 revisions
Real Chrome/WebExtensions are not available on this CEF OSR embedding (see Limitations). Instead: Tampermonkey-style scripts and Stylus-style CSS.
Open Ctrl+Shift+U for the combined list (Reload re-reads both folders).
- Put a
.jsfile in~/.config/spatial-browser/userscripts/ - Ctrl+Shift+U → Reload
// @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 (default: filename) |
@match |
URL glob or spatial-ui / spatial:* for built-in chrome pages |
@exclude |
Same language; any hit skips the script |
@run-at |
document-start, document-end (default), document-idle
|
// @name Tweak settings list
// @match spatial-ui
// @run-at document-end
document.body.style.letterSpacing = '0.02em';GM_addStyle(css)-
GM_getValue(key, default)/GM_setValue(key, value)(localStorage,gm:prefix)
- Put a
.cssfile in~/.config/spatial-browser/userstyles/ - Ctrl+Shift+U → Reload
/* @name Dim built-in lists */
/* @match spatial-ui */
body {
filter: brightness(0.92);
}/* @name Example.com denser */
/* @match *://*.example.com/* */
article { max-width: 40rem; margin: 0 auto; }| Tag | Meaning |
|---|---|
@name |
Display name |
@match |
URL glob or spatial-ui / spatial:* for built-in chrome pages |
@exclude |
Same language |
Omnibox, bookmarks, history, downloads, workspaces, settings, help, switcher, and this scripts list are ephemeral built-in pages served from spatial://page/<kind>/<token>. Site globs never match them. Their CSP blocks fetch/XHR, eval and remote @import/fonts, so scripts and styles for them must be self-contained.
For both scripts and styles use:
@match spatial-ui
(spatial:* is an alias.) That matches any built-in UI page.
- Toggle scripts / styles (state in
userscripts_state.json/userstyles_state.json) - Reload — both directories
-
Scripts folder / Styles folder —
xdg-open