您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a context menu item that opens the raw Sora video in a new tab to download or share.
- // ==UserScript==
- // @name OpenAI Sora Video Downloader
- // @description Adds a context menu item that opens the raw Sora video in a new tab to download or share.
- // @version 1.0.3
- // @author yodaluca23
- // @license GNU GPLv3
- // @match *://sora.com/*
- // @match *://sora.chatgpt.com/*
- // @grant GM_registerMenuCommand
- // @grant GM_openInTab
- // @run-at document-idle
- // @namespace https://greasyfork.org/users/1315976
- // ==/UserScript==
- function extractAndOpenVideoURL() {
- const targetElement = document.querySelector('.absolute.cursor-default');
- if (targetElement) {
- const videoElement = targetElement.querySelector('video');
- if (videoElement && videoElement.src) {
- // Open the video URL in a new tab
- GM_openInTab(videoElement.src, {
- active: true,
- insert: true,
- pinned: false
- });
- }
- }
- }
- GM_registerMenuCommand("Download This Sora Video", extractAndOpenVideoURL, "e");