您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Generates a ready-to-use curl command that downloads a specific meeting recording
// ==UserScript== // @name teams-meets-curl // @namespace https://github.com/spmn/ // @match https://teams.microsoft.com/* // @grant none // @version 1.0 // @author spmn // @description Generates a ready-to-use curl command that downloads a specific meeting recording // ==/UserScript== (function() { "use strict"; function getCookieValue(a) { var b = document.cookie.match('(^|;)\\s*' + a + '\\s*=\\s*([^;]+)'); return b ? b.pop() : ''; } function copyToClipboard(text) { var dummy = document.createElement("textarea"); document.body.appendChild(dummy); dummy.value = text; dummy.select(); document.execCommand("copy"); document.body.removeChild(dummy); } window.open = (url, target) => { const token = getCookieValue('skypetoken_asm'); const cookie = `skypetoken_asm=${token}`; const cmd = `curl '${url}' -H 'Cookie: ${cookie}' --compressed --output dl.mp4`; console.log(cmd); copyToClipboard(cmd); }; })();