Destiny Kick Embed

Embeds Kick stream on Destiny.gg and switches between streams automatically.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

// ==UserScript==
// @license      GPL3
// @name         Destiny Kick Embed
// @version      1.0.0
// @description  Embeds Kick stream on Destiny.gg and switches between streams automatically.
// @author       Seb3thehacker
// @match        https://www.destiny.gg/bigscreen
// @grant        none
// @namespace https://greasyfork.org/users/1114452
// ==/UserScript==

(function() {
    'use strict';

    // Twitch channel or video URL
    var twitchUrl = 'https://player.kick.com/destiny'; // Replace "channelname" with the desired Twitch channel or video

    // Create an <iframe> element
    var iframeElement = document.createElement('iframe');
    iframeElement.src = twitchUrl;
    iframeElement.width = '100%';
    iframeElement.height = '100%';
    iframeElement.frameBorder = '0';
    iframeElement.allowFullscreen = true;

    // Find the <div> element with the id "embed"
    var embedDiv = document.getElementById('embed');

    // Append the <iframe> element to the <div> element
    if (embedDiv) {
        embedDiv.appendChild(iframeElement);
    }

    var offlineTextElement = document.getElementById('offline-text');

    // Remove the text from the data-bg-text attribute
    if (offlineTextElement) {
        offlineTextElement.setAttribute('data-bg-text', '');
    }

})();