Script Azis

Script bendecido por Azis para la eliminación de los videos codificados de Canal Plus

As of 2019-11-01. See the latest version.

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!)

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!)

// ==UserScript==
// @name         Script Azis
// @namespace    www.tinychat.com
// @version      0.3
// @description  Script bendecido por Azis para la eliminación de los videos codificados de Canal Plus
// @author       Circulo
// @match        https://tinychat.com/*
// @grant        none
// ==/UserScript==

var temporizador = setInterval(azis,0); // cada un tiempo mínimo, se quitan los candados

// Quita los candados de los videos
function azis() {
    'use strict';

    // HTML DOM del contenido
    var elmContenido;
    // HTML DOM que contiene la lista de ítems de vídeos
    var elmVideoList;
     // HTML DOM que contiene los ítems de vídeos
    var elmVideoItems;
    // HTML DOM que contiene el item de video que se quiere modificar para quitarle el candado
    var elmVideoItem;
    
    var numVideo;

    elmContenido = document.getElementById("content");
    elmVideoList = elmContenido.shadowRoot.querySelectorAll("tc-videolist")[0];
    elmVideoItems = elmVideoList.shadowRoot.querySelectorAll("tc-video-item");

    numVideo = 0;
    while(numVideo < elmVideoItems.length)
    {
        elmVideoItem = elmVideoItems[numVideo].shadowRoot.querySelectorAll(".video.blured");
        if (elmVideoItem.length != 0)
        {
            elmVideoItem[0].className = "video"; // se quita "blured" de la clase del item de video, para quitarle el candado
        }

        elmVideoItem = elmVideoItems[numVideo].shadowRoot.querySelectorAll(".video.muted.blured");
        if (elmVideoItem.length != 0)
        {
            elmVideoItem[0].className = "video muted"; // se quita "blured" de la clase del item de video muteado, para quitarle el candado
        }
        numVideo++;
    }

};