FastPokeMap cleaner

Remove header and footer to FastPokeMap

当前为 2016-09-24 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);
}) ();