// ==UserScript==
// @name PMOG unrestricted shop
// @namespace davidsev
// @description Makes the shop have text boxes instead of menus.
// @include http*://pmog.com/shoppe
// @include http*://*.pmog.com/shoppe
// ==/UserScript==
// This code is copyright David Severwright 2008.
// You can do what you want with this, just credit me etc.
for (i = 0; i < document.forms.length; i++)
{
if(document.forms[i].getAttribute("action") != "/shoppe/purchase")
continue;
var form = document.forms[i];
var sel = form.getElementsByTagName("select")[0];
var tb = document.createElement("input");
for (a = 0; a < sel.attributes.length; a++)
{
tb.setAttribute(sel.attributes[a].name, sel.attributes[a].value);
}
tb.style.width = "3em";
sel.parentNode.insertBefore (tb, sel);
sel.parentNode.removeChild (sel);
}