// DeviantART - Beggar Breaker v0.2
// Made By Luke Stevenson {http://lucanos.deviantart.com/}
// Distributed and Maintained via GMVC
// Last updated: 13 August 2006
//
//   This script hides any "Donate a subscription" Button on deviantART
// pages.
//
// ==UserScript==
// @name              DeviantART - Beggar Breaker
// @namespace         http://gmvc.lucanos.com/
// @description       (v0.2) v0.2 - Hides any "Donate a subscription" Banners (dAv5 Friendly).
// @include           http://*.deviantart.com*
// ==/UserScript==

(function() {

	var begButton = document.evaluate("/html/body[@id='deviantART-v5']/div[@id='world']/div[@id='output']/div[@id='deviant']/div[1]/div[@id='deviant-commands']/div/a",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	if ( begButton.snapshotLength>0 ) {
		// Deviant Buttons Detected
		for ( var i=0; i<begButton.snapshotLength; i++ ) {
			// Go through the Deviant Buttons
			if ( begButton.snapshotItem(i).innerHTML == "Donate a subscription" ) {
				// This is the Beggar Button
				begButton.snapshotItem(i).style.display = "none";
			}
		}
	} else {
		// No Buttons Detected
	}

})()
