FBMW*

By remarkable Last update Mar 11, 2009 — Installed 14,486 times.

rate limiting change

in
Subscribe to rate limiting change 4 posts, 4 voices



davevg User

Below are some changes I implemented locally to automatically pause when rate limited.
Replace this section:

/* 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.

 
John Doe111 Scriptwright

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 :)

 
Falcnor User

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.

 
remarkable Script's Author

Implemented, will be in version 1.27i

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel