Script Azis

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

Stan na 01-11-2019. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Script Azis
// @namespace    www.tinychat.com
// @version      0.5
// @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.querySelector("tc-videolist");
    elmVideoItems = elmVideoList.shadowRoot.querySelectorAll("tc-video-item");

    numVideo = 0;
    while(numVideo < elmVideoItems.length)
    {
        elmVideoItem = elmVideoItems[numVideo].shadowRoot.querySelector(".video");
        elmVideoItem.classList.remove("blured"); // se quita "blured" de la lista de clases del item de video, para quitarle el candado

        numVideo++;
    }

};