查找適用於當前網站的腳本

查找適用於當前網站的用戶腳本,支持多個腳本倉庫

作者
Pipecraft
今日安裝
6
安裝總數
7
評價
0 0 0
版本
0.1.5
建立日期
2025-09-25
更新日期
2025-09-25
尺寸
9.3 KB
授權條款
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 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
  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 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:

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址