How rodkisten/userscripts-cf works
Userscripts CF is a Tampermonkey userscript suite: users install either a unified script or individual scripts, and the unified runtime activates configured modules according to URL rules, including SPA navigation. The product spans RodX Studio, social-site tools, a page REPL, and shared runtime/UI capabilities. The README documents lifecycle and routing; the source index confirms selected internal dependencies. Many feature implementations were not sampled, so their internal call relationships are omitted rather than inferred.
Main entry points: runtime.ts URL router · index.js RodX Studio · query-compiler.js Search compiler · query-parser.js Search parser
Components 27
Userscript Runtime
- Module rules
userscripts.config.js - URL router
src/core/runtime.ts - Rule matching
src/core/script-manager.js - Page-context bridge
src/runtime/gm-bridge.ts - Persistent GM storage
src/runtime/gm-storage.ts - Shared UI library
src/runtime/solid-ui - Form controls
src/runtime/solid-ui/form-controls - Runtime defaults
src/config/defaults.js
RodX Studio
- RodX Studio
src/userscripts/rodx-studio/index.js - Search configuration
src/userscripts/rodx-studio/config/search.js - Search parser
src/userscripts/rodx-studio/search/query-parser.js - Search compiler
src/userscripts/rodx-studio/search/query-compiler.js - Search blocks
src/userscripts/rodx-studio/search/blocks.js - Local feed rules
src/userscripts/rodx-studio/feeds/local-rules.js - Lists and collections
src/userscripts/rodx-studio/lists - Media enhancements
src/userscripts/rodx-studio/media - Network inspection
src/userscripts/rodx-studio/network - RodX interface
src/userscripts/rodx-studio/ui
Site Integrations
- Instagram saved
src/userscripts/instagram-saved/index.tsx - GitHub tools
src/userscripts/github-tools/index.tsx - Reddit and Soundgasm
src/userscripts/gonewild/index.tsx
Developer Tools
- Page REPL
src/userscripts/page-repl/index.js - DOM inspector
src/userscripts/dom-inspector/index.tsx - Mobile editor FAB
src/userscripts/mobile-editor-fab/index.tsx - Example-site script
src/userscripts/example-site/index.js
Other components
- Userscript user
- Tampermonkey
Connections 26
- Userscript user → Tampermonkey: installs
- Tampermonkey → URL router: runs script
- Module rules → URL router: configures modules
- URL router → Rule matching: checks rules
src/core/script-manager.js - URL router → Page-context bridge: injects page modules
- URL router → Persistent GM storage: provides module storage
- URL router → RodX Studio: activates on URL match
- URL router → Instagram saved: activates on URL match
- URL router → GitHub tools: activates on URL match
- URL router → Reddit and Soundgasm: activates on URL match
- URL router → Page REPL: activates on URL match
- URL router → DOM inspector: activates on URL match
- URL router → Mobile editor FAB: activates on URL match
- URL router → Example-site script: activates on URL match
- RodX Studio → Search configuration: uses configuration
- Search compiler → Search parser: parses queries
src/userscripts/rodx-studio/search/query-compiler.js - Search compiler → Local feed rules: parses directives
src/userscripts/rodx-studio/search/query-compiler.js - Search compiler → Search blocks: compiles blocks
src/userscripts/rodx-studio/search/query-compiler.js - Search parser → Search configuration: uses limits
src/userscripts/rodx-studio/search/query-parser.js - Search parser → Search blocks: builds and validates
src/userscripts/rodx-studio/search/query-parser.js - Form controls → Shared UI library: renders with
src/runtime/solid-ui/form-controls/Combobox.tsx - Lists and collections → RodX Studio: supports collections
- Media enhancements → RodX Studio: enhances media
- Network inspection → RodX Studio: inspects traffic
- RodX interface → RodX Studio: provides interface
- Instagram saved → Userscript user: syncs collections