rate limiting change
|
|
Below are some changes I implemented locally to automatically pause when rate limited.
/* Error Handling */
// The [http://www.facebook.com/common/error.html] page
if (document.location.href=='http://www.facebook.com/common/error.html')
{
window.location.href='http://apps.facebook.com/mobwars/';
}
// The [Heavily Rate Limited] page
else if (document.body.innerHTML.match(/This page is being heavily rate limited. Please avoid constantly refreshing this page./))
{
window.location.href='http://apps.facebook.com/mobwars/';
}
with
/* Error Handling */
// The [http://www.facebook.com/common/error.html] page
var rl = 0;
if (document.location.href=='http://www.facebook.com/common/error.html')
{
window.location.href='http://apps.facebook.com/mobwars/';
}
// The [Heavily Rate Limited] page
else if (document.body.innerHTML.match(/This page is being heavily rate limited. Please avoid constantly refreshing this page./))
{
rl = 1;
setTimeout(function(){window.location.href = "http://apps.facebook.com/mobwars/"+(boss.preferences.hurl?"":"hitlist/");}, 30000);
}
Then change this line: if (boss.preferences.hitlist_active && boss.stamina>0) to if (boss.preferences.hitlist_active && boss.stamina>0 && rl == 0) This will cause the script to pause for 30 seconds instead of the constant refreshing getting the limiting page. |
|
|
Excellent modification and already has worked for me since modifying it. It's a pain when you get the rate limit page and didnt notice it for 5 mins. the longer you refresh with the rate limit page on the longer youre blocked from the hitlist. This will definitley prevent being locked out of it. Kudos to you :) |
|
|
Seems they are putting tighter controls on rate limiting. Was running fine for about 3 hours at 1-6 now it's set to 4-9 and I'm still getting rate limited every 5th refresh or so. |
|
|
Implemented, will be in version 1.27i |