// ==UserScript== // @name Steam展柜自定义快速工具 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 快速作品编辑工具 // @author Your name // @match https://steamcommunity.com/id/*/ // @match https://steamcommunity.com/sharedfiles/edititem/767/3/ // @grant GM_openInTab // @grant GM_setClipboard // @grant GM_notification // @require https://code.jquery.com/jquery-3.6.0.min.js // @downloadURL https://update.greasyfork.icu/scripts/542479/Steam%E5%B1%95%E6%9F%9C%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BF%AB%E9%80%9F%E5%B7%A5%E5%85%B7.user.js // @updateURL https://update.greasyfork.icu/scripts/542479/Steam%E5%B1%95%E6%9F%9C%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BF%AB%E9%80%9F%E5%B7%A5%E5%85%B7.meta.js // ==/UserScript== (function() { 'use strict'; // 添加自定义样式 - Steam官方风格 const css = ` .custom-steam-tool-btn { background: linear-gradient(135deg, #67c1f5 0%, #417a9b 100%); color: #ffffff; border: 1px solid #1999d3; border-radius: 3px; padding: 8px 16px; font-weight: normal; cursor: pointer; font-family: "Motiva Sans", Arial, sans-serif; font-size: 13px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3); box-shadow: 0 0 2px rgba(103, 193, 245, 0.3); transition: all 0.2s ease; position: relative; z-index: 9999; margin-left: 10px; } .custom-steam-tool-btn:hover { background: linear-gradient(135deg, #78c9f7 0%, #4a8bb5 100%); box-shadow: 0 0 5px rgba(103, 193, 245, 0.5); transform: translateY(-1px); } .custom-steam-tool-btn:active { background: linear-gradient(135deg, #417a9b 0%, #67c1f5 100%); transform: translateY(0); } .custom-dropdown { position: fixed; background: linear-gradient(135deg, #1e2328 0%, #2a475e 100%); border: 1px solid #67c1f5; border-radius: 5px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 10px rgba(103, 193, 245, 0.3); min-width: 300px; z-index: 10000; display: none; overflow: hidden; font-family: "Motiva Sans", Arial, sans-serif; backdrop-filter: blur(10px); transform: scaleY(0); transform-origin: top; transition: all 0.3s ease-out; } .custom-dropdown.show { transform: scaleY(1); } .custom-dropdown a { display: block; padding: 12px 16px; color: #c6d4df; text-decoration: none; border-bottom: 1px solid rgba(42, 71, 94, 0.5); transition: all 0.2s ease; font-size: 13px; position: relative; } .custom-dropdown a:hover { background: linear-gradient(90deg, rgba(103, 193, 245, 0.2) 0%, rgba(103, 193, 245, 0.1) 100%); color: #67c1f5; padding-left: 20px; } .custom-dropdown a:last-child { border-bottom: none; } .custom-dropdown a::before { content: "▶"; margin-right: 10px; color: #67c1f5; font-size: 10px; opacity: 0; transition: all 0.2s ease; } .custom-dropdown a:hover::before { opacity: 1; } .code-notification { position: fixed; bottom: 80px; right: 20px; background: linear-gradient(135deg, rgba(30, 35, 40, 0.95) 0%, rgba(42, 71, 94, 0.95) 100%); border: 1px solid #67c1f5; border-radius: 5px; padding: 16px 20px; color: #c6d4df; font-size: 13px; z-index: 100000; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 10px rgba(103, 193, 245, 0.3); max-width: 400px; font-family: "Motiva Sans", Arial, sans-serif; animation: slideIn 0.3s ease-out; backdrop-filter: blur(10px); } .code-notification strong { color: #67c1f5; display: block; margin-bottom: 8px; font-size: 14px; font-weight: normal; } .code-notification p { margin: 6px 0; line-height: 1.5; } .code-notification .hotkey { background: rgba(103, 193, 245, 0.3); padding: 2px 6px; border-radius: 3px; font-family: monospace; font-size: 12px; border: 1px solid rgba(103, 193, 245, 0.5); } .code-tip { padding: 12px 16px; color: #a9cf46; font-size: 12px; line-height: 1.5; border-top: 1px solid rgba(42, 71, 94, 0.5); background: rgba(42, 71, 94, 0.3); } .bottom-btn-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; } .top-right-btn-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: row; align-items: center; } .dropdown-top-right { transform-origin: top right; } @keyframes slideIn { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } } .plugin-check-info { position: fixed; top: 60px; right: 20px; background: linear-gradient(135deg, rgba(30, 35, 40, 0.9) 0%, rgba(42, 71, 94, 0.9) 100%); border: 1px solid #67c1f5; border-radius: 5px; padding: 12px 16px; color: #c6d4df; font-size: 12px; z-index: 9998; max-width: 300px; font-family: "Motiva Sans", Arial, sans-serif; backdrop-filter: blur(10px); animation: slideIn 0.3s ease-out; } .plugin-check-info .status-ok { color: #a9cf46; } .plugin-check-info .status-warning { color: #ffa500; } .plugin-check-info .status-error { color: #ff6b6b; } `; $('