您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Execute UserScript
// ==UserScript== // @name DOWNSUBリンクからChatGPTに要約 // @namespace http://tampermonkey.net/ // @version 1.0 // @description Execute UserScript // @author Your Name // @match https://subtitle.downsub.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const button = document.createElement('div'); button.style.position = 'fixed'; button.style.top = '15px'; button.style.left = '130px'; button.style.width = '100px'; button.style.height = '100px'; button.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; button.style.borderRadius = '5px'; button.style.cursor = 'pointer'; button.style.zIndex = '10000'; button.style.display = 'flex'; button.style.alignItems = 'center'; button.style.justifyContent = 'center'; for (let i = 0; i < 3; i++) { const line = document.createElement('div'); line.style.width = '20px'; line.style.height = '3px'; line.style.backgroundColor = 'white'; line.style.margin = '2px 0'; button.appendChild(line); } button.addEventListener('click', () => { javascript:(function(){ var currentUrl = window.location.href; var summaryText = '以下のリンクはYoutubeの字幕です。これをもとに動画を要約してください\n ' + currentUrl; var textArea = document.createElement('textarea'); textArea.value = summaryText; document.body.appendChild(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); window.location.href = 'https://chatgpt.com/'; })(); }); document.body.appendChild(button); })();