Jeddunk / lolalytics anti ad block fix

// ==UserScript==
// @name         lolalytics anti ad block fix
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  disables anti adblock measures on lolalytics
// @author       Jeddunk
// @match        http://*.lolalytics.com/*
// @match        http://lolalytics.com/*
// @grant        none
// @updateURL https://openuserjs.org/meta/Jeddunk/lolalytics_anti_ad_block_fix.meta.js
// ==/UserScript==

(function() {
    'use strict';
    addGlobalStyle('.wrapper {opacity: 1 !important}');
    addGlobalStyle('#RXcYvSQMUpqm > p {display: none !important}');
    addGlobalStyle('header > div.wrapper > div > div:nth-child(1) {height: 0 !important}');
    addGlobalStyle('header > div.wrapper > div > div:nth-child(2) {display: none !important}');
})();

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}