Skip to content

Instantly share code, notes, and snippets.

@RyanBreaker
Last active December 22, 2016 04:55
Show Gist options
  • Select an option

  • Save RyanBreaker/506808e5244d5f99fc0706f7070a8502 to your computer and use it in GitHub Desktop.

Select an option

Save RyanBreaker/506808e5244d5f99fc0706f7070a8502 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Wunderground Remove Banner
// @namespace https://github.com/RyanBreaker
// @version 0.2
// @description Removes annoying ad banner from the top of wunderground.com.
// @author Ryan Breaker
// @include *wunderground.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var el = document.getElementsByClassName('header-ad-wrap')[0];
if (el !== undefined) {
el.remove();
console.log('Banner removed');
} else {
console.log('Banner not found');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment