DishNetwork - Fix Previous Statement Select

By Phillip Roberts Last update May 16, 2008 — Installed 65 times.
// ==UserScript==
// @name           DishNetwork - Fix Previous Statement Select
// @namespace      com.phillroberts.scripts
// @description    Add the id=billDateSelect id to the "View Previous Statements" selection box to fix the error in firefox
// @include        https://customersupport.dishnetwork.com/customercare/billing/prepShowBillingInformation.do*
// @include        https://customersupport.dishnetwork.com/customercare/billing/billSummaryData.do*
// ==/UserScript==

var datapath = "//select[@name='billDateSelect']";
var data = document.evaluate(datapath, document, null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
if(data.snapshotLength > 0){
	var n = data.snapshotItem(0);
	n.setAttribute("id","billDateSelect");
}