// ==UserScript== // @name 天翼云盘直连助手🚀 无需转存立即下载告别限速无需会员真正的不限速 // @namespace https://www.cnblogs.com/lusuo // @version 30.0.0 // @description 【一键F12】自动引导 + 自动刷新 + 链接提取。集成下载工具指引,支持 IDM/Motrix/NDM。 // @author Lusuo // @license MIT // @match *://cloud.189.cn/* // @match *://h5.cloud.189.cn/* // @run-at document-start // @grant GM_setClipboard // @grant unsafeWindow // ==/UserScript== (function() { 'use strict'; const realWindow = unsafeWindow || window; // ========================================== // ⚙️ 配置中心 // ========================================== const CONFIG = { author: "Lusuo", blogUrl: "https://www.cnblogs.com/lusuo", // 打赏跳转链接 donateUrl: "https://www.cnblogs.com/lusuo/p/19576399" }; console.log(`🚀 直连助手 (${CONFIG.author} v30) 已启动`); // ========================================== // 🔧 全局函数挂载 // ========================================== // 1. 复制链接 realWindow.tyCopyLink = function(btn) { const text = document.getElementById('ty-url-text').innerText; if (navigator.clipboard) { navigator.clipboard.writeText(text); } else { const textarea = document.createElement('textarea'); textarea.value = text; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); } const oldText = btn.innerText; btn.innerText = '✅ 复制成功'; btn.style.background = '#059669'; setTimeout(() => { btn.innerText = oldText; btn.style.background = '#007AFF'; }, 2000); }; // 2. 关闭面板 realWindow.tyClosePanel = function() { document.getElementById('ty-result-panel').style.display = 'none'; }; // 3. 显示引导 realWindow.tyShowGuide = function() { if (document.getElementById('ty-guide-modal')) return; const div = document.createElement('div'); div.id = 'ty-guide-modal'; div.className = 'ty-overlay'; div.innerHTML = `
1. 按下键盘 F12 打开开发者工具。
2. 按下 Ctrl + Shift + M (开启手机视图)。注意要在F12中按Ctrl + Shift + M后脚本会识别自动刷新
3. 脚本会自动刷新页面进入手机端。
💡 进入手机版后,选择你需要的文件只能一个一个来然后点击底部的“下载”按钮,脚本会自动拦截并提取链接。