Text

Sep 6, 2010
@ 1:39 pm
Permalink

Not in my nose, and other strangely erotic and erection-inducing tales

I present to you, dicks;

var favoriteLink = $(".fav-link");

favoriteLink.click(function () {
    var 
        _url = window.location.href,
        _title = document.title;

    if (document.all) { // Lol internets explorer
        window.external.AddFavorite(_url, _title);
    } else if (window.sidebar) { // Lol firefox
        window.sidebar.addPanel(_title, _url, '');
    }

    return false;
});

I have nothing else to say. Welcome to 1998.