Find Scripts For This Site

Find userscripts for the current website from popular script repositories

Від 25.09.2025. Дивіться остання версія.

Автор
Pipecraft
Рейтинги
0 0 0
Версія
0.1.0
Створено
25.09.2025
Оновлено
25.09.2025
Size
7,4 кБ
Ліцензія
MIT
Відноситься до
Всі сайти

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.

中文版

screenshot

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

  1. Click here to install from GitHub
  2. Click here to install from Greasy Fork

Usage Instructions

Basic Usage

  1. Visit any website
  2. Click on the userscript manager icon in your browser toolbar
  3. In the popup menu, you'll see the following options:
    • 🍴 Find scripts on Greasy Fork
    • 📜 Find scripts on OpenUserJS
    • 🐱 Find scripts on ScriptCat
    • 🐙 Find scripts on GitHub
    • 📝 Find scripts on GitHub Gist
  4. 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 Method
Greasy Fork 🍴 Site-based search
OpenUserJS 📜 Keyword search
ScriptCat 🐱 Domain search
GitHub 🐙 Code search
GitHub Gist 📝 Code search

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:

  1. Confirm the script is properly installed
  2. Confirm the script is enabled
  3. Refresh the page and try again

Q: Search results not accurate?

A: Possible reasons:

  1. The website uses a complex domain structure
  2. Enable debug mode to check if the extracted domain is correct

Debugging Steps

  1. Enable debug mode (set DEBUG: true)
  2. Open the browser developer tools console
  3. Refresh the page and check the log output
  4. Identify issues based on log information

Changelog

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