您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Ajoute des boutons pour télécharger des vidéos via Y2Mate, SaveTheVideo et SSSTwitter
当前为
// ==UserScript== // @name DL Videos // @namespace https://gf.qytechs.cn/ // @version 1.0 // @description Ajoute des boutons pour télécharger des vidéos via Y2Mate, SaveTheVideo et SSSTwitter // @author Lakfu Sama // @match *://*/* // @grant none // ==/UserScript== function openDownloadService(video, serviceUrl) { let videoUrl = video.querySelector('source')?.src || video.src; if (!videoUrl) { alert('Impossible de détecter la vidéo'); return; } // Gérer SSSTwitter if (serviceUrl.includes('ssstwitter')) { const tweetUrl = window.location.href; // Récupérer l'URL du tweet window.open(`${serviceUrl}?url=${encodeURIComponent(tweetUrl)}`, '_blank'); return; } // Gérer Y2Mate pour YouTube if (window.location.hostname.includes('youtube.com')) { const videoId = new URLSearchParams(window.location.search).get('v'); if (videoId && serviceUrl.includes('y2mate')) { window.open(`${serviceUrl}${videoId}`, '_blank'); return; } } // Pour d'autres cas window.open(`${serviceUrl}${encodeURIComponent(videoUrl)}`, '_blank'); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址