flyink13 / автовоспроизведение и удаление всего кроме видео gidonline.club

// ==UserScript==
// @name         автовоспроизведение и удаление всего кроме видео gidonline.club
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remove ads and autoplay video gidonline.club
// @author       flyink13
// @include      /^.+?\:\/\/(gidonline\.club|pandastream\.cc)\/.+/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if(location.host == "gidonline.club"){
        document.head.appendChild(document.createElement("style")).textContent = 'iframe:not([src^="http://pandastream.cc"]){display:none;} .ifram, body, html {position: relative;z-index: 1;width: 100%;height: 100%;}';
        document.body.innerHTML = document.querySelector(".ifram").outerHTML;
    }else{
        document.getElementById("player").click();
        setTimeout(function(){
            showVideo();
        },250);
    }
})();