Find Scripts For This Site
A practical userscript that helps you quickly find userscripts for the current website you're browsing, supporting multiple mainstream script repositories.
中文版

Features
- 🔍 One-Click Search - Quickly find scripts for the current website across multiple repositories
- 🌐 Multi-Repository Support - Supports Greasy Fork镜像, OpenUserJS, ScriptCat, GitHub, and GitHub Gist
- 🌍 Multilingual Support - Automatically adapts to browser language, supporting 8 common languages
- 🧩 Smart Domain Extraction - Automatically extracts top-level domains for accurate search results
- 🛡️ Error Handling - Comprehensive exception handling ensures script stability
- 🔧 Configurable - Supports debug mode and custom settings
Installation
Prerequisites
Ensure your browser has one of the following userscript managers installed:
Installation Steps
- Click here to install from GitHub
- Click here to install from Greasy Fork镜像
Usage Instructions
Basic Usage
- Visit any website
- Click on the userscript manager icon in your browser toolbar
- In the popup menu, you'll see the following options:
- 🍴 Find scripts by domain on Greasy Fork镜像
- 🍴 Find scripts by keyword on Greasy Fork镜像
- 📜 Find scripts by keyword on OpenUserJS
- 🐱 Find scripts by domain on ScriptCat
- 🐱 Find scripts by keyword on ScriptCat
- 🐙 Find scripts by keyword on GitHub
- 📝 Find scripts by keyword on GitHub Gist
- Click any option to open the search results in a new tab
Multilingual Support
The script automatically detects your browser language and displays the appropriate menu text. Currently supports:
- English
- Simplified Chinese
- Traditional Chinese
- Japanese
- Korean
- Spanish
- French
- German
- Russian
Technical Implementation
Core Functionality
- Domain Extraction: Intelligently extracts the top-level domain of the current website, handling subdomains and special domain formats
- Menu Registration: Uses
GM_registerMenuCommand
to register multiple search options
- Internationalization: Automatically selects appropriate menu text based on browser language
- New Tab Opening: Uses
GM_openInTab
to open search results in a new tab
Supported Script Repositories
Repository |
Icon |
Search Methods |
Greasy Fork镜像 |
🍴 |
Domain search, Keyword search |
OpenUserJS |
📜 |
Keyword search |
ScriptCat |
🐱 |
Domain search, Keyword search |
GitHub |
🐙 |
Keyword search (JavaScript code) |
GitHub Gist |
📝 |
Keyword search (JavaScript code) |
Configuration Options
The script provides configurable options in the CONFIG
object:
const CONFIG = {
REPOSITORIES: [
// Repository configurations...
],
DEBUG: false, // Debug mode switch
}
Enable Debug Mode
To view detailed operation logs, set CONFIG.DEBUG
to true
:
DEBUG: true,
Browser Compatibility
- ✅ Chrome 60+
- ✅ Firefox 55+
- ✅ Safari 12+
- ✅ Edge 79+
Troubleshooting
Common Issues
Q: Menu items not showing?
A: Please check:
- Confirm the script is properly installed
- Confirm the script is enabled
- Refresh the page and try again
Q: Search results not accurate?
A: Possible reasons:
- The website uses a complex domain structure
- Enable debug mode to check if the extracted domain is correct
Debugging Steps
- Enable debug mode (set
DEBUG: true
)
- Open the browser developer tools console
- Refresh the page and check the log output
- Identify issues based on log information
Changelog
v0.1.1
- ✨ Added keyword search functionality for all repositories
- 🔍 Optimized menu display based on repository capabilities
- 🧹 Code refactoring for better maintainability
- 📊 Updated repository search methods in documentation
v0.1.0 (Initial Release)
- ✨ Support for multiple script repository searches
- 🌍 Added multilingual support
- 🧩 Smart domain extraction functionality
- 🛡️ Comprehensive error handling
Contribution Guidelines
Issues and Pull Requests are welcome!
License
MIT License - See LICENSE file for details
Related Links