Я хочу вспомнить GM_xmlhttpRequest, если на странице нет ответа, например, цикл.
GM_xmlhttpRequest({
method: 'POST',
url: 'http://localhost/getcaptcha.php',
data: 'login='+login+'&password='+password,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
onload: function(responseDetails) {
if(responseDetails.responseText.length==3) {
// do something
}
else{
// i wanna go back to the GM_xmlhttpRequest again while there's no answer with the length==3
}
}
});
Как я могу это сделать?Спасибо теперь.