Script Azis

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

As of 2019-11-02. 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.6
// @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() {

    // 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 un ítem de vídeo
    var elmVideoItem;

    var blured; // el candado que se quiere quitar
    
    var numVideo;

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

    numVideo = 0;
    while(numVideo < elmVideoItems.length)
    {
        elmVideoItem = elmVideoItems[numVideo].shadowRoot.querySelector(".video");
        elmVideoItem.querySelector("div").querySelector("video").style.filter="none"; // quitar cualquier estilo que tenga el video
        blured = elmVideoItem.querySelector(".blured");
        if(blured !== null)
        {
            blured.remove(); // quitar el candado si tiene alguno
        }

        numVideo++;
    }

};