Created
March 11, 2018 05:19
-
-
Save sheharyarn/bf61f3302b1a48d9db22da6141785a33 to your computer and use it in GitHub Desktop.
Reddup video controls script for GreaseMonkey / Tampermonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddup Video Controls | |
// @version 0.1.0 | |
// @namespace https://www.reddup.co/ | |
// @homepageURL https://sheharyar.me/ | |
// @author Sheharyar Naseer | |
// @description Show Video Controls for all videos on Reddup | |
// @include http*://www.reddup.co/* | |
// @license MIT | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var selector = 'video:not([controls])'; | |
var timeout = 1000; | |
var showControls = function() { | |
$(selector).attr('controls', true); | |
}; | |
setInterval(showControls, timeout); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment