Evil script to determine which website is the user's home page
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.textile
demo.html
getHomepage.js

README.textile

getHomepage

Retrieves the user’s home page. Useful for tracking purposes.
Only works in Firefox and IE (yet).
Also it only gives the homepage url when it’s on the same domain.
Means that http://google.com/foo itself could check whether http://google.com is set as homepage but not http://yahoo.com.

Example

getHomepage(function(url) { alert("Your homepage is: " + url); });