🏠 Home 

Add Video Controls for 9gag.com on hover

Simple script for adding control elements for videos on 9gag.com and reduce ears pain from sound volume, by setting it to 20 percent


Install this script?
// ==UserScript==
// @name        Add Video Controls for 9gag.com on hover
// @namespace   Violentmonkey Scripts
// @match       https://9gag.com/*
// @match       https://9gag.com/gag/*
// @grant       none
// @version     1.0
// @author      DeathByte
// @description:en Simple script for adding control elements for videos on 9gag.com and reduce ears pain from sound volume, by setting it to 20 percent
// @description Простой скрипт, добавляющий возможность контроллировать громкость видео на 9gag.com, дополнительно убавляющий ее на старте до 20%
// ==/UserScript==
"use strict"
window.onmouseover = function(event){
const element = event.target;
if (element.tagName =="VIDEO" && element.hasAttribute("controls") == false) {
element.setAttribute("controls","");
element.nextSibling.style.display="none";
element.volume=0.2;
};
};