Created
May 22, 2019 20:37
-
-
Save pawelzwronek/dd7e1c9547f7de2f7f5f037ebb62242f to your computer and use it in GitHub Desktop.
JoeMonster Original Youtube Player
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 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