// ==UserScript==
// @name          MSNBC iFrame
// @namespace     http://sixside.com/
// @description   This script hides the iframe ads found in articles on the MSNBC.com website
// @include       http://www.msnbc.com/*
// @include       http://www.msnbc.msn.com/*
// ==/UserScript==
var alliFrames, thisiFrame;
alliFrames = document.getElementsByTagName('iframe');
for (var i = 0; i < alliFrames.length; i++) {
    thisiFrame = alliFrames[i];
    // do something with iFrame
	thisiFrame.width = 0;
	thisiFrame.height = 0;
}

var allTD, thisTD;
allTD = document.evaluate(
    "//td[@class='textSmallGrey']",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i = 0; i < allTD.snapshotLength; i++) {
    thisTD = allTD.snapshotItem(i);
    // do something with thisDiv
	thisTD.style.display = 'none';
	
}
