Code: Select all
javascript:alert('The real host of this site is: ' + location.protocol + '//' + location.hostname + '/');
It adds a "VerifyURL" context menu item. This simply creates a javascript alert box showing the true hostname of the site.
This gives you access to your verification bookmarklet even if your bookmarks aren't handy. This works on the spoofs at http://www.nd.edu/~jsmith30/xul/test/spoof.html for example.
This isn't intended to be anything major, just an easy way to add one more verification step. If you're setting a newbie up with Firefox, this may be something you want to add.
Giving credit where it's due, I used the BugMeNot extension as a template for creating this. I also found the bookmarklet on some site a while ago (shortly after http://username@server.com/ URLs were removed from IE), though I tweaked mine since then.
Version 0.2 up now
Added a toolbar button for the function.
Version 0.4 up now
Added IDN decoding