// ==UserScript== // @name Newegg cart to post converter for eggxpert.com // @namespace http://userscripts.org/users/62850 // @description Converts the cart in to postable html that has been patched for the forums // @include http://secure.newegg.com/Shopping/ShoppingCart.aspx* // @include http://secure.newegg.ca/Shopping/ShoppingCart.aspx* // @version 2 // @grant none // @downloadURL none // ==/UserScript== function findEle(target,i,e){ if(i==9) return document.evaluate(target, e?e:document, null, i, null).singleNodeValue; else return document.evaluate(target, e?e:document, null, i, null); } function inArray(arr,val){ if((arr.constructor==Array)===false){ if(arr.toString().indexOf(',')!=-1){ arr=arr.split(','); } else{ if(arr==val){ return true; } else{ return false; } } } for(var i=0;iHTML Code to PostIf you would like to clean the html code, paste it in the Tabifier.')).addEventListener('load',function(){ this.document.getElementById('txtBox').value=div.innerHTML; },false); },false); holder.snapshotItem(1).appendChild(btn); }