Instagram Larger Video Popup

Makes the Instagram video popup LARGER

当前为 2020-11-18 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Instagram Larger Video Popup
// @namespace   Violentmonkey Scripts
// @include     *instagram.com*
// @version     0.11
// @description Makes the Instagram video popup LARGER
// NOTE: this only works on user profile for the popup when you click on a video
// @author      goldnick7
// @grant       none
// ==/UserScript==

(function () {
    'use strict';

    function videoFixer() {
        var player = document.querySelector('video:not([fixed])')
        if(!player)
            return
        document.getElementsByClassName("PdwC2 fXiEu s2MYR")[0].style="max-width: 1200px;" //adjust this value for your resolution
        document.getElementsByClassName("kPFhm B1JlO OAXCp   ")[0].style="padding-bottom: calc(100% - 1px);"
        document.getElementsByClassName(" _65Bje  coreSpriteRightPaginationArrow")[0].style="left: 1100px;" //right arrow
        document.getElementsByClassName("ITLxV  coreSpriteLeftPaginationArrow ")[0].style="left: -210px;" //left arrow
    }

    setInterval(videoFixer, 10)
})();