Suggestion
|
|
Instead of having foo() set to a specific location you should just have the page submit the correct form
if(document.body.innerHTML.indexOf('has been added to your inventory') != -1){
window.setTimeout('document.forms[1].submit()', wil);
}
if(document.body.innerHTML.indexOf('SOLD OUT!') != -1){
document.forms[1].submit();
}
|
|
|
yah, there's a problem where if you click go back to shop greasemonkey doesn't load the second time. so i set it to reload the page which insures greasemonkey loads. couldn't figure out how else to get around it. |
|
|
Can TNT detect this easily? |