Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Facebook profile home country flags

Decorates facebook profile names with a leading flag, denoting the person's home country.

Flags c/o famfamfam (concatenation to single-image "CSS sprite" texture by me, though).

For seven countries (Curacao, APO, Abuja, Akrotiri, Ashmore and Cartier Islands, Sao Tome and Principe, and the Channel Islands), this script will not show flags, because the famfamfam set does not feature these flags. Names are listed as per what Facebook calls them in their country drop-downs. Feel free to contribute those final flags, and I'll update the script (and image, of course).

The preferred dimensions are 16x11 pixels, but feel free to change the width if you have to in order to get flag proportions right.




Mar 23, 2008
ftmichael User

The flags are not showing up for me. This worked previously; I'm not sure what changed, or exactly when. I only just noticed that they're gone! :/

 
Sep 18, 2007
Johan Sundström Script's author

Yes, this script does link to the flag graphics at googlepages, as shown in the description on top, and yes, that means Google could theoretically collect data about what facebook profile ids you visit when and how often, if they know that the image is used in that way by this script.

If that feels intruding, don't use the script, or rewrite it to use a data: url. I did not, as it was indeed just a quick hack I did for fun and feasibility testing of a background-position idea, and as, this way, it actually does allow me to fix requests like that for another flag for China even after install, should I find the time for it.

The image is 61k and should end up in your image cache the first time and stay for about as long as you frequent facebook. A data url for that would be more than 83k and completely swamp the source code of this script.

 
Sep 9, 2007
Dot User

I don't understand the "better/faster/easier than data" comment. Do you mean faster then using embedded images? He does that in other scripts and it is quite common practice.

There is no point in loading remote resources.

 
Sep 8, 2007
Stephen Paul... Scriptwright

Dot, are you demented? The image is hosted on google pages, there is no proper stats / way to track usage with that (AFAIK, GP stats/scripting suck)

Besides this, remote images are often better/faster/easier than data:

And, duh, Johan would never endorse spyware/ing

Research before calling bull ;)

 
Sep 8, 2007
Dot User

!! BEWARE !!

This script is BULLSHIT as it is spyware. It tracks your usage of facebook by loading a remote image.

If you look at the script you'll find a reference to the authors website:

'background:url(http://hacks.ecmanaut.googlepages.com/famfamfam...)'+

Cute - and accurate - name there.

 
Aug 27, 2007
Johan Sundström Script's author

Update: now groks state-only locations in Canada and USA, I think, at least for the friends I have there.

Regarding China, I only have the famfamfam flags. If you want others, feel free to contribute graphics in matching style.

 
Aug 1, 2007
Steven Bno User

Would it be possible that if someone only puts a State that it comes up with USA flag or something? Loads of my american friends didn't put their country, just their states code. Thanks

 
Jul 15, 2007
figogogo User

Could you change the flag of China back to the PRC one, instead of the ROC one?

You could comment on this script if you were logged in.