Greasy Fork is available in English.

Instagram Larger Video Popup

Makes the Instagram video popup LARGER

  1. // ==UserScript==
  2. // @name Instagram Larger Video Popup
  3. // @namespace Violentmonkey Scripts
  4. // @include *instagram.com*
  5. // @version 0.12
  6. // @description Makes the Instagram video popup LARGER
  7. // @author goldnick7
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12. // NOTE: this only works for videos
  13.  
  14. (function () {
  15. 'use strict';
  16.  
  17. function videoFixer() {
  18. var player = document.querySelector('video:not([fixed])')
  19. if(!player)
  20. return
  21. document.getElementsByClassName("PdwC2 fXiEu s2MYR")[0].style="max-width: 1200px;margin-top: -37px;" //adjust this value for your resolution
  22. document.getElementsByClassName("kPFhm B1JlO OAXCp ")[0].style="padding-bottom: calc(100% - 1px);"
  23. document.getElementsByClassName(" _65Bje coreSpriteRightPaginationArrow")[0].style="left: 1100px;" //right arrow
  24. document.getElementsByClassName("ITLxV coreSpriteLeftPaginationArrow ")[0].style="left: -210px;" //left arrow
  25. }
  26.  
  27. setInterval(videoFixer, 10);
  28. })();