Вроде, то что хотел написал, а фиг - не получается...как обойти ожидание на депозите?
Код:
window.stop();
var link=location.href
var cont=document.getElementsByTagName('*')[0];
function createRequestObject()
{
try {return new XMLHttpRequest()}
catch(e)
{
try { return new ActiveXObject('Msxml2.XMLHTTP') }
catch(e)
{
try { return new ActiveXObject('Microsoft.XMLHTTP') }
catch(e) {return null;}}}}
var http = createRequestObject();
var params='gateway_result=1'
http.open('post', link);
http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
http.send(params)
var html=http.responseText
var a=html.split('<div id="download_url" style="display:none;">')
var qwe=a[1].split("'")
var h = createRequestObject();
h.open('get', 'http://depositfiles.com/ru'+qwe[3]);
h.send(null)
cont.innerHTML=h.responseText