FastPokeMap cleaner

Remove header and footer to FastPokeMap

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 or Violentmonkey 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        FastPokeMap cleaner
// @description Remove header and footer to FastPokeMap
// @namespace   FPMHide
// @include     *://fastpokemap.se/*
// @version     3
// @grant       none
// ==/UserScript==
// http://www.geekatori.com
(function () {
  'use strict';
  document.getElementById('map').style.height = '100vh';
  var adRoom =  document.querySelector('.adroom');
  var desktopHeader = document.querySelector('.desktop-header');
  var mobileHeader = document.querySelector('.mobile-header');
  var menu = document.querySelector('.slicknav_menu');

  adRoom.parentNode.removeChild(adRoom);
  desktopHeader.parentNode.removeChild(desktopHeader);
  mobileHeader.parentNode.removeChild(mobileHeader);
  menu.parentNode.removeChild(menu);
}) ();