This repository is a Tampermonkey/Greasemonkey userscript that translates the GitHub web interface into Chinese (Simplified and Traditional). It works by loading a dictionary file containing static translations and regex rules, then applying them to the DOM on page load and dynamically via MutationObserver. It includes a sophisticated patch for GitHub's React-based GlobalNav header that carefully times translations to avoid conflicts with React rendering. The repository also contains a VS Code extension that injects the script into VS Code's integrated browser via Chrome DevTools Protocol, enabling translation within the IDE. The codebase is well-structured with clear separation of configuration, state management, and translation logic. It includes a comprehensive test suite for regression testing. The project is actively maintained with frequent updates to keep pace with GitHub's UI changes.
vite-plugin-monkey is a Vite plugin that compiles userscripts (user.js) for Tampermonkey, Violentmonkey, Greasemonkey, and ScriptCat. It transforms a standard Vite project into a self-contained userscript bundle, injecting the required metadata header, handling external dependencies via CDN (@require/@resource), and automatically collecting GM API grants. The plugin supports both development (HMR via a proxy server) and production builds, with dynamic import support via SystemJS. It consists of a collection of Rollup/Vite plugins that modify the build pipeline: config, CSS injection, external globals, external resources, asset URL fixing, and final bundle generation. The architecture is modular and well-separated, with clean abstractions for userscript metadata generation, AST-based grant collection, and CDN URL helpers.
Violentmonkey is a mature, open-source browser extension for managing and executing userscripts across Chrome, Firefox, Edge, and other WebExtensions-compatible browsers. The extension provides a full lifecycle for userscripts: installation from URLs or files, automatic updates, syntax-highlighted editing (via CodeMirror 5), per-script configuration, and a dashboard for bulk operations. Its architecture comprises a background service worker (MV3) or background page (MV2), content scripts injected into web pages (with separate realms for page-level GM API execution and content-level bridge), a popup interface, an options dashboard, an installation confirmation page, and an offscreen document for cross-origin requests under MV3. The system integrates multiple sync backends (Dropbox, Google Drive, OneDrive, WebDAV, S3-compatible), supports i18n with 30+ locales via Transifex, and includes custom build tooling for multi-browser packaging. While the core domain is userscript management, the codebase demonstrates sophisticated patterns for secure script injection, anti-spoofing (safe globals), reactive settings, and concurrency-limited storage operations.
This repository is a collection of Tampermonkey userscripts for Chinese cloud storage services: Baidu Pan, Aliyun/AliDrive, Quark, Tianyi/189, LanZou, Xunlei, Weiyun, Caiyun, and 123Pan. In practice, the scripts do much more than the README's vague description of "resource search": they inject download-link buttons into cloud-drive pages, resolve private API endpoints to expose direct download URLs, auto-fill share passwords from local cache or a remote LeanCloud backend, generate Aria2 RPC pushes and BitComet bc:// links, and replace native web players with APlayer/ArtPlayer-based audio/video players. The įŽĄåŽļåŠ script additionally maintains a local cache of visited share links/passwords and provides a search dialog pointing at many third-party resource-search sites.