// ==UserScript== // @name [银河奶牛]游戏内链接快速查看 // @name:en [MWI]In-Game Link Quick Viewer // @namespace https://cnb.cool/shenhuanjie/skyner-cn/tamper-monkey-script/mwi-dialog-link-viewer // @description 说明:游戏里面的链接还是直接在游戏里面查看比较方便,这个插件能帮到你。 // @description:en It's more convenient to check the links within the game directly, and this plugin can assist you with that. // @version 1.0.4 // @author shenhuanjie // @license MIT // @homepage https://greasyfork.org/scripts/535885 // @supportURL https://greasyfork.org/scripts/535885 // @match https://www.milkywayidle.com/* // @icon https://www.milkywayidle.com/favicon.svg // @grant GM_addStyle // @grant unsafeWindow // @downloadURL https://update.greasyfork.icu/scripts/535885/%5B%E9%93%B6%E6%B2%B3%E5%A5%B6%E7%89%9B%5D%E6%B8%B8%E6%88%8F%E5%86%85%E9%93%BE%E6%8E%A5%E5%BF%AB%E9%80%9F%E6%9F%A5%E7%9C%8B.user.js // @updateURL https://update.greasyfork.icu/scripts/535885/%5B%E9%93%B6%E6%B2%B3%E5%A5%B6%E7%89%9B%5D%E6%B8%B8%E6%88%8F%E5%86%85%E9%93%BE%E6%8E%A5%E5%BF%AB%E9%80%9F%E6%9F%A5%E7%9C%8B.meta.js // ==/UserScript== (function() { 'use strict'; // 添加样式 GM_addStyle(` #dialog-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.3s ease; } #dialog-container.active { display: flex; } #dialog-content { background-color: white; width: 90%; height: 90%; max-width: 1600px; max-height: 900px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } #dialog-container.active #dialog-content { transform: scale(1); } #dialog-header { padding: 16px 24px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; } #dialog-title { font-size: 20px; font-weight: 600; color: #333; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #dialog-close { cursor: pointer; font-size: 28px; line-height: 1; color: #666; transition: color 0.2s; } #dialog-close:hover { color: #333; } #dialog-body { flex-grow: 1; overflow: hidden; position: relative; } #dialog-iframe { width: 100%; height: 100%; border: none; } .dialog-loading { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: white; z-index: 1; opacity: 1; transition: opacity 0.3s; } .dialog-loading.hidden { opacity: 0; pointer-events: none; } .dialog-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .dialog-error { text-align: center; padding: 20px; } .dialog-error p { margin: 10px 0; } .dialog-error a { color: #2196F3; text-decoration: underline; } `); // 创建容器元素 const container = document.createElement('div'); container.id = 'dialog-container'; container.innerHTML = `