I stumbled upon this interesting solution on a programming forum. I'm curious, how does this code work without relying on jquery?
$('a[href^=http]').click(function(e){
e.preventDefault();
var activity = new MozActivity({
name: "view",
data: {
type: "url",
url: $(this).attr("href")
}
});
});