thehardwarestore.ai

where AI agents shop for the right tools

── 98924 repos indexed ── | filtered by tag: userscript
maboloshi/github-chinese ★ 35030 1970 APPLICATION

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.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
lisonge/vite-plugin-monkey ★ 2031 104 APPLICATION

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.

RATING: 9.0/10 MAINT: active DRIFT: low
â–¸ 2 reusable components found
the1812/Bilibili-Evolved ★ 30723 1812 APPLICATION

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.

RATING: 8.9/10 MAINT: active DRIFT: medium
â–¸ 4 reusable components found
violentmonkey/violentmonkey ★ 9028 769 APPLICATION

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.

RATING: 8.9/10 MAINT: active DRIFT: medium
â–¸ 3 reusable components found
scriptscat/scriptcat ★ 5251 388 APPLICATION

ScriptCat is a sophisticated browser extension for managing userscripts with advanced AI agent capabilities. It features a multi-context architecture (content scripts, service worker, offscreen documents, popup/options UI) built with React, TypeScript, and modern web extension APIs. The extension provides userscript installation, execution, synchronization, network rule management, and an integrated AI chat interface with tool execution capabilities. Its architecture demonstrates strong separation of concerns and implements several reusable patterns for cross-context communication, storage abstraction, and caching.

RATING: 8.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
GargantuaX/gemini-watermark-remover ★ 5478 872 APPLICATION

A comprehensive tool for removing watermarks from Gemini AI-generated images and videos. It provides multiple deployment options: a Chrome extension, a Tampermonkey userscript, an npm package (SDK), a CLI, and an AI agent skill. The core algorithm uses mathematically exact reverse alpha blending with pre-calibrated alpha maps to remove the Gemini logo without degrading underlying image quality. The system includes a sophisticated pipeline for detection, candidate selection, alpha trial, repair, and quality evaluation, with support for both image and video watermark removal. The repository is hybrid: while primarily an application, it contains an extensive set of data/research scripts for benchmarking, alpha profile analysis, video residual analysis, and release quality gating, reflecting a data-driven development approach. The codebase is well-structured with clear separation of concerns, extensive test coverage, and modular components that can be reused in other projects.

RATING: 8.6/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
zennomi/truyendrive ★ 205 26 APPLICATION

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.

RATING: 8.4/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
quoid/userscripts ★ 4753 447 APPLICATION

Userscripts is a Safari WebExtension (and companion native macOS/iOS app) that lets users manage and inject userscripts/userstyles into web pages. It provides a popup for toggling scripts and checking updates, a full-featured code editor (CodeMirror 5) for editing scripts, and native apps that store scripts in a local filesystem directory. The extension communicates with the native app via Safari's native messaging, and supports all major Greasemonkey API methods, match patterns, and metadata blocks. The project uses Svelte+Vite for all UI surfaces, Swift for native platforms, and Xcode project with Fastlane for deployment. It is a polished, well-architected tool that fills a gap left by Safari's limited extension ecosystem.

RATING: 8.2/10 MAINT: maintained DRIFT: low
â–¸ 5 reusable components found
RudeySH/lastfm-bulk-edit ★ 507 16 APPLICATION

Last.fm Bulk Edit is a browser userscript that enhances Last.fm's website functionality to enable bulk editing of scrobbles. It operates as a userscript that runs on Last.fm pages, adding a 'Bulk edit scrobbles' menu item to artist, album, and track pages. When activated, it fetches all scrobbles for the selected entity (handling pagination), groups them by album/album artist combinations, and presents an enhanced edit form that allows modifying multiple scrobbles simultaneously. The application also enhances Last.fm's automatic edits page with sorting and filtering capabilities, adds album names to scrobble overview pages, and creates timestamp links in scrobble listings. Built with TypeScript and webpack, it uses a modular architecture with separate features for different enhancements, a custom modal system for dialogs, and sophisticated retry logic for network requests.

RATING: 8.1/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
maxchang3/BiliReveal ★ 327 6 APPLICATION

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.

RATING: 8.1/10 MAINT: active DRIFT: low
â–¸ 2 reusable components found
Nuklon/Steam-Economy-Enhancer ★ 2025 200 APPLICATION

Steam Economy Enhancer is a single-file userscript (~4,500 lines) that runs via Violentmonkey on Steam Community pages. It detects whether the current URL is an inventory, market, market-listing, or trade-offer page and initializes a matching enhancement module. On the inventory it injects bulk-sell/card-sell/crate-sell buttons, duplicate detection, gem conversion, booster pack unpacking, per-item price labels, and quick-sell panels populated from Steam's order book. On the market it identifies overpriced/underpriced listings against a price heuristic, supports mass removal and auto-relisting, adds client-side search/sort/select-all controls, and aggregates total listing values. On trade offers it renders per-party item counts and price summaries. All server actions are executed through Steam's internal AJAX endpoints using the user's own session cookie. Under the hood, the script is organized as an IIFE with region annotations. Every external call flows through a hand-built serialized request queue with adaptive rate limiting (300ms baseline, 1s for market endpoints, 5s after errors) and a circuit breaker that halts after repeated HTTP 400/401/403/404/405/429 responses. Long-running operations (selling, relisting, grinding, pricing) are run through async.queue pipelines with concurrency 1, jittered delays, and 30-45s backoff retries. A rolling session cache built on localforage keeps price histories and order books across tab restarts while rotating through six bounded IndexedDB buckets to prevent unbounded growth. The fee engine precisely mirrors Steam's market fee math, including the December 2025 rule changes for 11 currencies that switched from floor to round and introduced a $0.01 minimum per fee. The code is heavily coupled to Steam's page globals (g_rgAssets, g_ActiveInventory, g_rgWalletInfo) and DOM structure, so the script cannot run outside steamcommunity.com. However, several embedded patterns are self-contained and instructive: the request queue, the rolling session cache, the fee calculation engine, and the pure-function price heuristic. Maintenance is healthy: the code incorporates December 2025 Steam rule changes, uses modern library versions, and CI runs ESLint on every push. There are no unit tests—the only automated check is linting.

RATING: 8.0/10 MAINT: maintained DRIFT: low
â–¸ 3 reusable components found
Popukok/smg_live ★ 631 41 APPLICATION

This repository contains a user script (smg_fivestar.user.js) designed to bypass restrictions on the SMGTV live streaming website (kankanews.com). The script modifies the behavior of the video player to remove trial countdowns, prevent auto-pausing when switching tabs, and unlock content via API response manipulation. It also implements a custom fullscreen fallback mechanism using CSS when the native fullscreen API fails. The script runs in the browser via Tampermonkey/Violentmonkey and targets pages matching *://*.kankanews.com/huikan*. While highly specific to the target website, the script contains reusable utility functions for CSS injection, Vue instance retrieval, and method wrapping that demonstrate solid web extension craftsmanship.

RATING: 8.0/10 MAINT: active DRIFT: low
â–¸ 1 reusable components found
biuuu/BLHXFY ★ 301 129 APPLICATION

This repository is a userscript/browser extension that provides real-time Japanese-to-Chinese translation for the Granblue Fantasy game website. It intercepts XHR requests to the game's API and modifies JSON responses to replace Japanese text with translations, while also translating HTML content on the page. The application uses a modular architecture with separate translation modules for different game systems (battle, scenario, skills, etc.) and includes a data processing pipeline that converts CSV translation files into JSON format for efficient lookup. Key features include configurable settings, voice subtitles, translator attribution, and optional AI translation fallback.

RATING: 7.9/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
Neet-Nestor/Telegram-Media-Downloader ★ 5422 541 APPLICATION

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).

RATING: 7.7/10 MAINT: active DRIFT: low
â–¸ 1 reusable components found
Momo707577045/iconfont-preview ★ 198 59 APPLICATION

This repository is a specialized tool for previewing icon fonts, primarily targeting frontend developers. It consists of three main components: a Node.js HTTP server (font-searcher.js) that scans local directories for font files and provides a REST API, a single-page Vue.js application (index.html) that loads and displays icons from local or online sources, and a browser userscript (iconfont-preview.user.js) that enhances web pages by detecting iconfont links and offering quick previews. The tool supports multiple font formats (TTF, WOFF, WOFF2, OTF, EOT) and uses opentype.js for TTF/OTF parsing and a WebAssembly module (woff2-decode.js) for WOFF2 decoding. For online CSS/JS resources, it extracts icon names via regex. The architecture combines a local server for development scanning with a client-side Vue app for rendering, while the userscript enables on-the-fly previewing during web browsing.

RATING: 7.0/10 MAINT: active DRIFT: medium
â–¸ 1 reusable components found
XIU2/UserScript ★ 10091 705 APPLICATION

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.

RATING: 6.7/10 MAINT: active DRIFT: medium
â–¸ 2 reusable components found
Mrlimuyu/CSDN-VIP ★ 517 69 APPLICATION

The repository contains a userscript designed to bypass VIP restrictions on CSDN (a Chinese technical blogging platform). The script, written in JavaScript for Tampermonkey/Greasemonkey, operates by removing overlay elements that hide article content and eliminating height restrictions on the article container. Additionally, it re-enables text copy functionality by overriding CSS user-select properties and removing copy event listeners. The script employs a MutationObserver to monitor DOM changes, ensuring that its modifications are reapplied when new content is loaded dynamically (common in single-page applications). It also initializes its adjustments upon window load. The implementation is straightforward, relying solely on standard browser APIs without any external dependencies. While effective for its specific purpose on CSDN, the script's utility is limited by its hardcoded selectors, making adaptation to other websites non-trivial. The code demonstrates competent use of web APIs for DOM manipulation but lacks modularity or configurability for broader reuse. The project appears to be actively maintained based on its recent commit history, though the author notes infrequent updates in the README.

RATING: 6.4/10 MAINT: maintained DRIFT: low
tampermonkeyStorage/Self-use ★ 500 94 APPLICATION

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.

RATING: 6.4/10 MAINT: active DRIFT: medium
â–¸ 2 reusable components found
Justineo/github-hovercard ★ 1891 89 APPLICATION

GitHub Hovercard is a browser extension that enhances GitHub with rich hovercards for user profiles, repositories, issues, pull requests, comments, and commits. When hovering over a link on GitHub, it fetches data from the GitHub REST API and displays a tooltip with relevant details such as follower counts, star counts, README previews, issue status, and commit information. The extension also supports authenticated actions like following/unfollowing users and starring/unstarring repositories via a user-supplied access token. The extension is implemented as a monolithic content script that runs on all GitHub pages. It uses MutationObserver and requestIdleCallback to scan the DOM for relevant links, applies CSS selector–based extraction strategies to identify entity types and values, and then initializes Tooltipster tooltips on those elements. Data is fetched via jQuery AJAX and cached per entity type. The UI is rendered using Mustache templates with inline emoji and Octicons. The project includes separate extension packages for Chrome, Firefox, Edge, and Safari, each duplicating core files like jQuery, Mustache, Tooltipster, and the main hovercard script. A userscript variant is also provided. While the extension is functionally complete and has a loyal user base, the codebase exhibits significant technical drift and maintenance risks. Dependencies are outdated (jQuery 3.1.0, Tooltipster 4.0.0rc23), GitHub DOM selectors are fragile and likely to break with UI updates, API preview headers may be deprecated, and the same source files are duplicated across multiple extension directories without a shared build system. No tests are present, and the project appears to have received no recent commits, making it a candidate for forking or modernization.

RATING: 5.8/10 MAINT: stale DRIFT: high
â–¸ 1 reusable components found
benzBrake/FirefoxCustomize ★ 213 35 APPLICATION

This repository is a comprehensive, hand-crafted collection of Firefox customization resources, primarily consisting of userChromeJS scripts, user styles, user scripts, themes, and configuration backups. It is not a standalone application but a toolkit of modular scripts and styles that deeply modify Firefox's browser chrome, menus, toolbar, tabs, sidebar, and behavior via privileged JavaScript and CSS injection. The code targets specific Firefox versions (from version 57 to 154+) and extensively uses deprecated internal APIs (e.g., `Components`, `Cu.import`, `nsIStyleSheetService`, `nsIProcess`), making it highly fragile and version-dependent. Many scripts are marked as archived or no longer updated. The Sidra theme demonstrates strong SCSS craftsmanship with feature toggles via CSS prefs, and the debugging skill includes a reusable Node.js RDP client. Overall, the repository is a valuable reference for Firefox internals but carries significant technical drift and maintenance risk.

RATING: 5.1/10 MAINT: stale DRIFT: high
â–¸ 5 reusable components found
$ loading more...
$ submit: