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.
Bilibili-Evolved is a powerful userscript (Tampermonkey/Greasemonkey) that enhances the Bilibili video platform with a modular component and plugin system. It injects into Bilibili pages and provides a wide range of features including video player enhancements (speed control, screenshot, remember progress), danmaku management (merging, downloading, conversion), UI customization (dark mode, custom navbar, home page redesign), feed filtering, live streaming tools, and video downloading with multiple output formats. The architecture is based on a core framework in `src/` that handles settings, DOM observation, style injection, toast notifications, and lifecycle management, while individual features are defined as components in `registry/lib/components/` using a metadata-driven pattern (`defineComponentMetadata`). Features can be installed, updated, and configured through a built-in settings panel. The project relies heavily on Bilibili's internal APIs and DOM structure, making it tightly coupled to the platform but also highly functional for power users. It uses Vue 2 for UI, TypeScript for type safety, and SCSS for styling, with a custom build pipeline using Webpack and pnpm.
TruyenDrive is a userscript that injects a full-featured comic/manga reader UI into Google Drive and OneDrive folder pages. Built with Vite, React 19, and TypeScript, it runs as a Tampermonkey script that mounts a shadow DOM reader overlay on top of the cloud storage page. The system automatically scans folder structures to detect chapters (sub-folders) or flat image lists, supports left-to-right, right-to-left, and top-to-bottom reading directions, spread layouts, zoom, page preloading, and browser history integration. It also implements a custom image encryption/decryption system using XOR and scanline methods, with Web Worker support for performance. The architecture is cleanly separated into provider abstractions (Google Drive, OneDrive), a state machine for folder classification, and a rich settings system with theme presets and persistence. The codebase demonstrates strong engineering practices including TypeScript strict mode, proper error boundaries, and reusable utility modules.
BiliReveal is a browser user script that enhances Bilibili's web interface by displaying IP location information in comment sections. The script detects which comment system is in use (Vue 2, Vue 3, or Lit-based web components) and hooks into the appropriate rendering mechanism to inject IP data fetched from Bilibili's APIs. It features a modular architecture with URL-based routing, separate injection strategies for different comment systems, and user-configurable text replacement rules. The project is actively maintained with recent updates, comprehensive end-to-end tests using Playwright, and a modern build setup using Vite and vite-plugin-monkey to generate both standard and Lite versions of the user script.
AntiDebug Breaker is a Chrome extension (Manifest V3) designed for JavaScript reverse engineering and penetration testing. It injects over 30 modular hook scripts into web pages to bypass anti-debugging techniques (e.g., `debugger` statements, `console.clear`, time-diff detection), intercept browser APIs (`XMLHttpRequest`, `fetch`, `localStorage`, `sessionStorage`, `JSON.parse`, `JSON.stringify`, `Math.random`, `Date.now`, `performance.now`), and extract cryptographic operations (CryptoJS, JSEncrypt, SM-crypto). It also detects Vue.js and React Router routes by traversing internal DOM fiber trees and exposes them in a popup UI for copying or opening. The extension operates via a background service worker, a content script injected at `document_start`, and a popup interface that allows per-domain or global script toggling with fine-grained configuration (e.g., keyword filtering, value overrides). Each hook script is a self-contained Tampermonkey-style unit that communicates with the extension via `window.postMessage` and `localStorage` flags, making them usable independently outside the extension. The codebase demonstrates strong practical utility for security researchers, but suffers from monolithic popup logic, reliance on brittle internal framework properties, and a lack of automated tests.
This repository is a single-file userscript (Tampermonkey/Greasemonkey) that adds download buttons to the Telegram webapp for images, GIFs, videos, and audio messages, even in channels where downloading is disabled. The script runs via polling (setInterval) to detect media viewers and inject buttons. It downloads videos and audio using chunked HTTP range requests, assembling the parts into a Blob or using the File System Access API for streaming writes. Images are downloaded directly via anchor element click. The code is self-contained, with no external dependencies, and includes a progress bar for video downloads. The architecture is a classic userscript pattern: DOM manipulation via polling, with carefully crafted download logic that handles large files and supports both standard and restricted content. The script is actively maintained, with frequent updates and a large user base (5.4k+ stars).
This repository is a collection of over 20 user scripts (Tampermonkey/Greasemonkey) that enhance the browsing experience on various websites. The scripts provide site-specific beautifications, functional enhancements (e.g., removing login popups, blocking users/keywords, restoring original images), and general utilities like dark mode, auto-pagination, and high-speed download acceleration for GitHub. The architecture is monolithic: each script is a single, self-contained JavaScript file that runs in the browser via the userscript manager. The code heavily relies on DOM manipulation, MutationObserver, and GM_* APIs for storage, notifications, and cross-origin requests. The most notable component is the Autopage engine, a generic infinite-scroll and pagination system that uses an external rules JSON to support hundreds of sites. While functional and popular (10k+ stars), the codebase suffers from code duplication across scripts, tight coupling to specific website DOM structures, and lack of modularization or testing. The repository is actively maintained with issue templates and regular updates, but the reliance on external rules and site-specific selectors introduces ongoing maintenance risk.
This repository is a comprehensive collection of ad-blocking filter lists, CSS styles, JavaScript scripts, and configuration files for proxy tools (Surge, QuantumultX, Shadowrocket, Clash) and browser extensions (uBlock Origin Lite, Tampermonkey). It targets both international and Chinese websites, with a strong focus on streaming, adult, and content farm sites. The core functionality is delivered through platform-specific rule lists (`.list`, `.conf`, `.sgmodule`, `.yaml`) and a set of userscripts that inject CSS/JS into web pages via MITM proxy or browser script managers. The repository also includes a large set of pre-compiled uBlock Origin Lite scriptlets that implement advanced ad-blocking techniques such as cookie removal, attribute removal, eval blocking, and timer manipulation. The project is community-driven, with issue templates for reporting new ad locations. While primarily a configuration/rule collection, it contains substantial JavaScript code that demonstrates client-side ad-blocking patterns.
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.