{"id":18901360,"url":"https://github.com/xiaohuohumax/xhh-script","last_synced_at":"2025-06-20T22:37:01.336Z","repository":{"id":57786833,"uuid":"265482149","full_name":"xiaohuohumax/Xhh-Script","owner":"xiaohuohumax","description":"油猴脚本-VIP视频解析-网盘资源搜索","archived":false,"fork":false,"pushed_at":"2023-01-23T11:19:39.000Z","size":487,"stargazers_count":18,"open_issues_count":0,"forks_count":9,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T14:51:11.894Z","etag":null,"topics":["javascript","resources","tampermonkey","vipvideo"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaohuohumax.png","metadata":{"files":{"readme":"README.md","changelog":"history.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-20T07:14:32.000Z","updated_at":"2025-03-23T11:49:25.000Z","dependencies_parsed_at":"2023-02-12T22:45:52.300Z","dependency_job_id":null,"html_url":"https://github.com/xiaohuohumax/Xhh-Script","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuohumax%2FXhh-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuohumax%2FXhh-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuohumax%2FXhh-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuohumax%2FXhh-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaohuohumax","download_url":"https://codeload.github.com/xiaohuohumax/Xhh-Script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248995100,"owners_count":21195497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","resources","tampermonkey","vipvideo"],"created_at":"2024-11-08T08:55:53.122Z","updated_at":"2025-04-15T02:36:45.682Z","avatar_url":"https://github.com/xiaohuohumax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xhh-Script\n\n自用油猴脚本 /Shadow DOM/\n\n### 🧰 功能\n\n- 🎥 VIP 视频解析\n- 🕸 网盘资源搜索\n\n### 📖 使用\n\n- 浏览器安装 🔗[油猴](https://www.tampermonkey.net/) 插件\n- 油猴中新建脚本\n- 使用项目打包完成的脚本 [xhh-script.js](./dist/xhh-script.js) 替换即可新油猴脚本内容\n- 最后刷新网页即可\n\n### 🔨 修改脚本配置\n\n对照脚本 [xhh-script.js](./dist/xhh-script.js) 中配置的说明修改即可\n\n```javascript\n// 基础配置\n// elementName         Shadow DOM 标签名称\n// ...\nwindow.base_config = {\n  elementName: 'xhh-script',\n  // ...\n}\n```\n\n### 🧪 运行 \u0026 修改 \u0026 构建\n\n- 克隆项目源码\n- 安装依赖 \u0026 运行调试\n\n  ```shell\n  npm i\n  npm run dev\n  ```\n\n- 打包构建\n\n  ```shell\n  npm run build\n  ```\n\n## 🔗 快速使用油猴调试\n\n- 首先赋予油猴读取本地文件的权限\n- 然后执行 npm run build 生成 [quick.test.js](./dist/quick.test.js)\n- 新建一个油猴脚本, 用 [quick.test.js](./dist/quick.test.js) 替换原内容即可\n\n  ```txt\n  // 此 header 会自动本地加载打包完成的脚本\n  // @require      file://.../xhh-script.js\n  ```\n\n### 📅 更新记录\n\n[记录](./history.md)\n\n### ⚙ 项目环境\n\nvite + bootstrap + vue3 + pinia\n\n### 🌳 项目文件结构说明\n\n```text\nXhh-Script\n ├── build                        // 打包\n │   ├── load.config.js\n │   ├── load.header.js\n │   ├── plugins                  // vite 油猴插件\n │   ├── template\n │   └── utils.js\n ├── dist                         // 打包结果\n ├── global.config.js             // 全局配置\n ├── history.md\n ├── index.html\n ├── jsconfig.json\n ├── LICENSE\n ├── package-lock.json\n ├── package.json\n ├── README.md\n ├── src\n │   ├── apis                     // 接口集合\n │   ├── App.vue\n │   ├── components\n │   ├── config                   // 配置\n │   ├── define.element.js\n │   ├── exception\n │   ├── header                   // 油猴 header\n │   ├── load.style.js\n │   ├── main.js                  // 入口\n │   ├── model\n │   ├── module                   // 子模块\n │   ├── plugin\n │   ├── store                    // pinia 持久化仓库\n │   ├── style.css\n │   └── utils                    // 工具\n └── vite.config.js\n```\n\n### 💕 感谢\n\n感谢各位 API 的制作者, 有了你们我才能快乐的玩耍 ♪(＾ ∀ ＾ ●)ﾉ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaohuohumax%2Fxhh-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaohuohumax%2Fxhh-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaohuohumax%2Fxhh-script/lists"}