PGAN - Remove Discord Initial Overlay

Remove the initial discord pop up (why they don't set a cookie for 300+ days to just hide this after first view is beyond me)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name	PGAN - Remove Discord Initial Overlay
// @namespace	pogoalerts.net
// @author	pgan-nerd
// @description	Remove the initial discord pop up (why they don't set a cookie for 300+ days to just hide this after first view is beyond me)
// @license	Creative Commons Attribution License
// @version	0.1.3
// @include	https://*.pogoalerts.net/*
// @released	2018-01-27
// @updated	2018-01-27
// @compatible	Greasemonkey
// @require	http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==

(function(){
	var attemptRemoval = function(){
		var $motd = $('#motd');
		if($motd.length > 0)
			$('#motd').parent().find('.ui-dialog-titlebar-close').click();
		else
			setTimeout(attemptRemoval, 250);
	};
	setTimeout(attemptRemoval, 350);
})($);