Skip to content

Instantly share code, notes, and snippets.

@LegusX
Created December 16, 2017 04:58
Show Gist options
  • Save LegusX/2fdcb17ae1d766474ff8dd98f3a7ff05 to your computer and use it in GitHub Desktop.
Save LegusX/2fdcb17ae1d766474ff8dd98f3a7ff05 to your computer and use it in GitHub Desktop.
// ==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