Skip to content

Instantly share code, notes, and snippets.

@pawelzwronek
Created May 22, 2019 20:37
Show Gist options
  • Save pawelzwronek/dd7e1c9547f7de2f7f5f037ebb62242f to your computer and use it in GitHub Desktop.
Save pawelzwronek/dd7e1c9547f7de2f7f5f037ebb62242f to your computer and use it in GitHub Desktop.
JoeMonster Original Youtube Player
// ==UserScript==
// @name JoeMonster Original Youtube Player
// @include http://joemonster.org/*
// @include https://joemonster.org/*
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @grant none
// ==/UserScript==
let $ = window.jQuery;
(function() {
'use strict';
let parent = $('.youtube-html-player');
let i = parent.find('iframe[title="YouTube video player"]');
let s = i.attr('src');
if (s.includes('controls=0')) {
i.attr('src', s.replace('controls=0', 'controls=1'));
}
parent.find('.mejs__controls').remove();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment