Created
December 16, 2017 04:58
-
-
Save LegusX/2fdcb17ae1d766474ff8dd98f3a7ff05 to your computer and use it in GitHub Desktop.
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 GoGuardian youtuber fixer | |
// @namespace https://legusx.github.io | |
// @version 1 | |
// @description Fixes the goguardian thing that half blocks videos. | |
// @author LegusX | |
// @match https://www.youtube.com/watch* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.youtubefixer = setInterval(function(){ | |
if (typeof document.getElementsByClassName("gg_player_holder")[0]!=="undefined") { | |
document.getElementsByClassName("gg_player_holder")[0].style.display = "none"; | |
document.getElementsByClassName("gg-play-button")[0].click(); | |
clearInterval(window.youtubefixer); | |
} | |
}, 1); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment