diff --git a/worker.js b/worker.js index 1750235..c29ec9a 100644 --- a/worker.js +++ b/worker.js @@ -1114,13 +1114,13 @@ function getHTML() { ' .github-link {', ' position: fixed;', -' right: 150px;', // 放在 token 设置按钮左边', +' right: 150px;', ' top: 20px;', -' background: #333;', // GitHub 的深色背景', +' background: #333;', ' color: white;', ' border: none;', ' padding: 10px;', -' border-radius: 50%;', // 圆形按钮', +' border-radius: 50%;', ' cursor: pointer;', ' z-index: 1001;', ' width: 40px;', @@ -1132,7 +1132,7 @@ function getHTML() { ' }', ' .github-link:hover {', -' background: #24292e;', // GitHub hover 颜色', +' background: #24292e;', ' }', ' .github-icon {', @@ -1178,10 +1178,34 @@ function getHTML() { ' color: #3498db;', ' font-family: monospace;', ' word-break: break-all;', +' }', + +// 添加获取cookie按钮样式 +' .get-cookie-link {', +' position: fixed;', +' right: 200px;', // 放在github图标左边 +' top: 20px;', +' background: #2ecc71;', // 使用不同的颜色区分 +' color: white;', +' border: none;', +' padding: 8px 15px;', +' border-radius: 5px;', +' cursor: pointer;', +' z-index: 1001;', +' text-decoration: none;', +' font-size: 14px;', +' transition: background 0.3s ease;', +' }', + +' .get-cookie-link:hover {', +' background: #27ae60;', ' }', '', '', '', + '', + ' 获取Cookie', + '', '', ' ', ' ',