Skip to content

Instantly share code, notes, and snippets.

@sheharyarn
Created March 11, 2018 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheharyarn/bf61f3302b1a48d9db22da6141785a33 to your computer and use it in GitHub Desktop.
Save sheharyarn/bf61f3302b1a48d9db22da6141785a33 to your computer and use it in GitHub Desktop.
Reddup video controls script for GreaseMonkey / Tampermonkey
// ==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