您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
adds a download link to twitch clips
当前为
// ==UserScript== // @name Twitch Clip Downloader // @namespace cdl // @version 0.1 // @description adds a download link to twitch clips // @author cc114 // @match http*://clips.twitch.tv/* // @exclude http*://clips.twitch.tv/create // @grant none // ==/UserScript== (function() { 'use strict'; var link; var fail = 0; function geturl() { link = document.querySelector(".video-player__container > video:nth-child(1)").getAttribute("src"); if (link == null || link == undefined) { console.log('[CDL] waiting'); if (fail < 5) { setTimeout(geturl, 500); } } else { console.log('[CDL] found clip link'); console.log('[CDL] ' + link); var div = document.createElement ('div'); div.innerHTML = '<a href="' + link + '">Download</a>'; var main = document.querySelector(".clips-watch > div:nth-child(1)"); main.insertBefore(div, document.querySelector("div.tw-pd-t-1:nth-child(3)")); } } window.addEventListener('load', () => { geturl(); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址