I would expect this to take a patch like in bug 446527 to really work independent of user settings.
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/urlformatter/src/nsURLFormatter.js is worth a look, too. Sadly, one can't pass in extra variables. Not sure if some of the blocklist variables would be worth adding.
I would expect this to take a patch like in bug 446527 to really work independent of user settings.
http:// mxr.mozilla. org/mozilla- central/ source/ toolkit/ components/ urlformatter/ src/nsURLFormat ter.js is worth a look, too. Sadly, one can't pass in extra variables. Not sure if some of the blocklist variables would be worth adding.