NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Download Twitch Clip Button
// @namespace http://twitter.com/Kirnehx
// @homepageURL http://twitter.com/Kirnehx
// @supportURL https://openuserjs.org/scripts/Kirneh/Download_Twitch_Clip_Button/issues
// @downloadURL https://openuserjs.org/install/Kirneh/Download_Twitch_Clip_Button.user.js
// @updateURL https://openuserjs.org/meta/Kirneh/Download_Twitch_Clip_Button.meta.js
// @version 0.6
// @description Places a button for easy download of Twitch Clips
// @author Kirnehx
// @match https://clips.twitch.tv/*
// @match https://*.twitch.tv/*/clip/*
// @exclude https://clips.twitch.tv/create
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// @license MIT
// ==/UserScript==
let loadOpenButton = setInterval(() => {
if (window.location.href != "https://clips.twitch.tv/create") {
if (document.getElementsByTagName("video").length != 0) {
var videoURL = document.getElementsByTagName("video")[0].src;
$('.player-controls__right-control-group').prepend('<a data-test-selector="clips-download-full-button" class="fCvKRl" style="color:white; border-radius: var(--border-radius-medium); width:auto !important; padding:0px 10px 0px 10px;" rel="noopener noreferrer" target="_blank" href="' + videoURL + '">Download Clip</a>');
console.log("[DTC] Video found, stopped looking");
clearInterval(loadOpenButton);
}
else {
console.log("[DTC] No video, looking again");
}
}
else {
console.log("[DTC] You're creating a clip, stopped looking");
clearInterval(loadOpenButton);
}
}, 3000);