My Userscript : 自动匹配显示当前网站所有可用的UserJS脚本

智能显示当前网站所有可用的UserJS脚本,支持一键安装到油猴扩展。悬浮按钮可关闭,设置按钮支持拖拽移动,提供灵活的用户体验。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

نووسەر
商伤
Daily installs
4
Total installs
140
Ratings
1 0 0
وەشان
4.5
Created
2025-09-08
Updated
2025-12-16
Size
32.1 KB
مۆڵەت
نییە
Applies to
هەموو سایتەکان

# My Userscript

## 简介

My Userscript 是一款智能的用户脚本管理工具,能够自动检测并显示当前访问网站可用的 UserJS 脚本,并提供一键安装到油猴扩展的便捷功能。该脚本采用优化设计,移除了冗余依赖,提升了性能和用户体验。

## 功能特点

- **智能检测**:自动识别当前网站可用的 UserJS 脚本
- **一键安装**:点击即可直接安装到油猴扩展,无需手动操作
- **详细信息**:显示脚本的安装量、更新时间等关键信息
- **灵活排序**:支持按安装量、更新时间等方式排序
- **可拖拽设置按钮**:关闭浮窗后,设置按钮可自由拖拽移动
- **现代化界面**:简洁美观的 UI 设计,提供良好的视觉体验
- **灵活的悬浮按钮**:支持临时隐藏或永久关闭悬浮窗

## 使用方法

1. 安装 Tampermonkey 浏览器扩展
2. 安装本脚本
3. 访问任意网站时,页面右侧会出现 "UserJS" 悬浮按钮
4. 点击按钮即可查看当前网站可用的脚本列表
5. 选择需要的脚本,点击"安装"按钮即可一键安装到油猴扩展
6. 若关闭悬浮窗,可通过右下角的设置按钮重新打开设置面板,且该按钮可自由拖拽

## 技术特性

- 使用 Greasy Fork API 获取脚本数据
- 基于原生 JavaScript 开发,仅依赖 psl 库用于域名解析
- 支持跨域请求和本地存储
- 响应式设计,适配不同屏幕尺寸
- 优化的代码结构,提升性能和可维护性

## 元数据配置

脚本包含完整的元数据声明:

- `@grant` 权限声明,包括 `GM_openInTab` 等关键 API
- `@connect` 域名连接声明,支持 Greasy Fork API
- `@require` 外部依赖库声明
- 多语言本地化支持

## 兼容性

- 支持 Tampermonkey(推荐)
- 支持其他兼容 UserScript 标准的扩展

## 开源协议

本项目基于 MIT 协议开源。