MCPcopy Index your code
hub / github.com/openstyles/stylus

github.com/openstyles/stylus @v2.4.2 sqlite

repository ↗ · DeepWiki ↗ · release v2.4.2 ↗
1,445 symbols 3,810 edges 190 files 126 documented · 9%
README

Stylus is a browser extension to restyle the websites via CSS themes, compatible with Chrome, Firefox, and any Chromium-based browsers.

Highlights

  • No analytics/tracking - this is our foundational principle as Stylus was created solely because the original Stylish extension was sold to a Web analytics company.
  • Lots of themes in external galleries like USW, USO archive, greasyfork:
  • click the Find button in the popup UI,
  • click the screenshot to apply the style to the website,
  • click the screenshot again to uninstall the style.
  • UserCSS styles with advanced customization installable from any raw plain text URL.
  • Cloud sync for Dropbox, GDrive, OneDrive, or any WebDAV-compatible server.
  • Backup to a JSON file compatible with other userstyles managers.
  • Auto-update for styles, configurable in each style and globally in the options.
  • Lightweight content script (~10kB) in the web pages runs in about a millisecond.
  • Lots of options to configure UI and behavior.
  • Built-in editor for your own CSS themes (CSS/LESS/Stylus) that highlights problems using up-to-date linters (Stylelint and CSSLint-mod) with customizable rules.
  • Support for external IDE or advanced editor via the live reload feature e.g. you can write SASS/SCSS by setting up a build step to produce standard CSS in a separate file that will be tracked by Stylus.

Screenshots

  • Manager

Style manager

  • Installer

Installer

  • Editor

Style editor

  • Popup search

Popup inline search

  • Popup config

Popup config for usercss

  • Manager config

Style manager config for usercss

  • Options

Options

Releases

  1. Chrome Web Store or beta

for modern Chrome (v128+) and Chromium-based browsers like Brave, Opera, Vivaldi.

  1. Mozilla addons or beta (as an xpi file)

for Firefox and any Gecko-based browser.

  1. Zip file with -mv2 suffix to load as an unpacked extension

for older Chromium-based browsers which only support ManifestV2 version.

Pre-release test builds (nightlies) badge

  1. click a workflow entry in https://github.com/openstyles/stylus/actions/workflows/ci.yml,
  2. download the file in Artifacts - this requires a github.com account,
  3. install it, see the instruction.

Asking questions, participating, contributing

  • Bugs, discussions, questions, ideas, pull requests: https://github.com/openstyles/stylus
  • Wiki for many common tasks and questions: https://github.com/openstyles/stylus/wiki
  • Discord: https://discordapp.com/widget?id=379521691774353408 Discord
  • Helping with translation: https://explore.transifex.com/github-7/Stylus/
  • Guidelines and more info: https://github.com/openstyles/stylus/CONTRIBUTING.md

License: GPLv3

Extension points exported contracts — how you extend this code

StyleObj (Interface)
(no doc)
src/.types.d.ts
Doc (Interface)
(no doc)
src/.types.external.d.ts
StyleSection (Interface)
(no doc)
src/.types.d.ts
Context (Interface)
(no doc)
src/.types.external.d.ts
Cache (Interface)
(no doc)
src/.types.d.ts
CSSState (Interface)
(no doc)
src/.types.external.d.ts
Response (Interface)
(no doc)
src/.types.d.ts
SectionsMap (Interface)
(no doc)
src/.types.d.ts

Core symbols most depended-on inside this repo

t
called by 242
src/js/util.js
$create
called by 166
src/js/dom.js
get
called by 141
src/background/db-chrome-storage.js
$
called by 127
src/js/color/color-picker.js
remove
called by 90
src/edit/sections-editor-section.js
delete
called by 79
src/background/db-chrome-storage.js
parse
called by 31
src/js/color/color-converter.js
fn
called by 29
src/js/target-icons.js

Shape

Function 1,333
Method 63
Interface 27
Class 22

Languages

TypeScript100%

Modules by API surface

src/js/color/color-picker.js63 symbols
src/edit/sections-editor.js46 symbols
src/edit/global-search.js46 symbols
src/js/util.js35 symbols
src/edit/sections-editor-section.js34 symbols
src/manage/import-export.js32 symbols
src/edit/codemirror-factory.js30 symbols
src/content/style-injector.js30 symbols
src/popup/search.js29 symbols
src/edit/moz-section-widget.js28 symbols
src/background/sync-manager.js26 symbols
src/js/color/color-view.js24 symbols

Dependencies from manifests, versioned

@automattic/webpack-inline-constant-exports-plugin1.0.0 · 1×
@babel/core8.0.1 · 1×
@babel/plugin-transform-runtime8.0.1 · 1×
@babel/preset-env8.0.2 · 1×
@eight04/draggable-list0.3.0 · 1×
@types/chrome0.1.43 · 1×
@types/codemirror5.60.17 · 1×
@types/firefox-webext-browser143.0.0 · 1×
@types/webpack5.28.5 · 1×
acorn8.17.0 · 1×
acorn-walk8.3.5 · 1×
babel-loader10.1.1 · 1×

For agents

$ claude mcp add stylus \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact