// ==UserScript== // @name 火烧云快捷查看 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 在网页右上角添加云图标,单击时显示弹出窗口,火烧云快捷查看 // @author Finder // @match *://*/* // @grant none // @run-at document-end // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/514619/%E7%81%AB%E7%83%A7%E4%BA%91%E5%BF%AB%E6%8D%B7%E6%9F%A5%E7%9C%8B.user.js // @updateURL https://update.greasyfork.icu/scripts/514619/%E7%81%AB%E7%83%A7%E4%BA%91%E5%BF%AB%E6%8D%B7%E6%9F%A5%E7%9C%8B.meta.js // ==/UserScript== (function() { 'use strict'; // 创建圆形图标 const cornerDiv = document.createElement('div'); cornerDiv.style.position = 'fixed'; cornerDiv.style.top = '60px'; // 向下移动50px cornerDiv.style.right = '10px'; cornerDiv.style.width = '50px'; cornerDiv.style.height = '50px'; cornerDiv.style.backgroundColor = 'rgba(182,201,184,0.8)'; cornerDiv.style.cursor = 'pointer'; cornerDiv.style.zIndex = '9999'; cornerDiv.style.display = 'flex'; cornerDiv.style.alignItems = 'center'; cornerDiv.style.justifyContent = 'center'; cornerDiv.style.borderRadius = '50%'; // 设置为圆形 // 添加云图标 const cloudIcon = document.createElement('img'); cloudIcon.src = 'https://dss2.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/weather/icons/a2.png'; // 使用提供的云图标链接 cloudIcon.style.width = '30px'; // 调整图标大小 cloudIcon.style.height = '30px'; // 调整图标大小 cornerDiv.appendChild(cloudIcon); document.body.appendChild(cornerDiv); // 创建模态框 const modal = document.createElement('div'); modal.style.position = 'fixed'; modal.style.top = '0'; modal.style.left = '0'; modal.style.width = '100%'; modal.style.height = '100%'; modal.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; modal.style.display = 'none'; // 初始隐藏 modal.style.zIndex = '10000'; modal.style.justifyContent = 'center'; modal.style.alignItems = 'center'; // 模态框内容 const modalContent = document.createElement('div'); modalContent.style.backgroundColor = 'white'; modalContent.style.padding = '20px'; modalContent.style.borderRadius = '8px'; modalContent.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.1)'; modalContent.innerHTML = '