diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81b98d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +# Dependencies +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Production builds +dist/ +build/ + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# IDE +.vscode/ +.idea/ +*.swp +*.swo + +# OS +.DS_Store +Thumbs.db + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Coverage directory used by tools like istanbul +coverage/ + +# nyc test coverage +.nyc_output + +# Dependency directories +jspm_packages/ + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# Local cache +.cache/ + +# Temporary folders +tmp/ +temp/ + +.github diff --git a/BIN文件上传提取Token工具-0.5.user.js b/BIN文件上传提取Token工具-0.5.user.js new file mode 100644 index 0000000..96f8095 --- /dev/null +++ b/BIN文件上传提取Token工具-0.5.user.js @@ -0,0 +1,507 @@ +// ==UserScript== +// @name BIN文件上传提取Token工具 +// @namespace http://tampermonkey.net/ +// @version 0.5 +// @description 上传BIN文件提取RoleToken并生成WSS链接 +// @author 豆包编程助手 +// @match *://*/* +// @grant GM_xmlhttpRequest +// @grant GM_setClipboard +// ==/UserScript== + +(function() { + 'use strict'; + + // 界面状态变量 + let toolContainer = null; + let isToolVisible = false; + + // 创建工具界面 + function createToolUI() { + // 检查是否已存在界面 + if (document.getElementById('bin-token-extractor')) { + toolContainer = document.getElementById('bin-token-extractor'); + return toolContainer; + } + + // 创建容器(固定宽度380px) + const container = document.createElement('div'); + container.id = 'bin-token-extractor'; + container.style.cssText = ` + position: fixed; + top: 50%; + right: 20px; + transform: translateY(-50%); + background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%); + border-radius: 16px; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); + width: 380px; + max-height: 80vh; + overflow-y: auto; + padding: 25px; + z-index: 99999; + display: none; /* 默认隐藏 */ + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + `; + + // 优化后的HTML结构 + container.innerHTML = ` +
上传文件,提取RoleToken并生成WSS链接
+点击或拖放BIN文件
+仅支持 .bin 格式文件
+ +