sarah_pdx / CyclingTips Junk Killer

// ==UserScript==
// @name        CyclingTips Junk Killer
// @description Removes annoying garbage from CyclingTips pages
// @namespace   cyclingtips.com
// @version     1
// @grant       none
// @include     http://cyclingtips.com/*
// ==/UserScript==

// remove annoying drop down bar / advertisement
var dd_bar = document.getElementById("dropdown-bar");
if (dd_bar) {
  dd_bar.parentNode.removeChild(dd_bar);
}

// blank (with ad-blocker) ad rectangle
var ad_div = document.evaluate('//div[@class="block ctips-ad-block ctips-ad-billboard"]',
                                   document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
ad_div = ad_div.snapshotItem(0);
if (ad_div) {
  ad_div.parentNode.removeChild(ad_div);
}