Facebook Friends Checker

By znerp Last update Nov 27, 2011 — Installed 8,688,015 times.

Feature Request - exFriends List

in
Subscribe to Feature Request - exFriends List 2 posts, 2 voices



frankgh User
FirefoxWindows

I would like the script to automatically remove friends from the exFriends list when they are back in my profile. For instance, some people would disable their facebook profile, and they will appear as if they've removed me from their friend's list. But when the reactivate their account they still show up as removed friends.

I have the code for it, if you'd like to use it:

var newSavedFriends = ({});
// FG: the newExFriends list
var newExFriends = ({});

for (i in oldSavedFriends) {
if (!newSavedFriends[i]) {
exFriends[i] = oldSavedFriends[i];
inform(oldSavedFriends[i]);
}
}

// FG: Check for friends in the newSavedFriends list that were in exFriends list
// if they are in the newSavedFriends don't add them to the newExFriends list
for (i in exFriends) {
if (newSavedFriends[i] && newSavedFriends[i].o===100) {
GM_log('Friend ' + newSavedFriends[i].t + ' is back');
} else {
newExFriends[exFriends[i].i] = exFriends[i];
}
}

// GM_setValue(facebookID + " ex friends", uneval(exFriends));
// FG: Save the newExFriends list instead of the exFriends list
GM_setValue(facebookID + " ex friends", uneval(newExFriends));

Thanks

 
znerp Script's Author
FirefoxWindows

That is an interesting idea. It's not something I'd have considered really (in the 10 months since I created this script, I believe I've only had 2 people show up because of it), but that really does make sense. I will look at implementing this code at some point in the next few days when I'm more with it and less tired.

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