Fix Youtube videos in Voxed.net

xdddd

当前为 2019-12-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         Fix Youtube videos in Voxed.net
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  xdddd
// @author       Mav3ricK
// @match        http://www.voxed.net/*
// @grant        none
// ==/UserScript==


    window.onload = function ()
    {

        function move()
        {

            if(document.querySelector('.attach_video') !== null)
            {
                var xd = document.querySelector('.attach_video');
                if(xd.tagName == 'IFRAME')
                {

                    xd.width = '390px';
                    xd.height = '243.75px';
                    xd.classList.remove("attach_video");

                }

            }

            setTimeout(move, 1000);
        }

        move();


    };