Replace link

by m4xout

JavaScript

$( document ).ready(function() {
	$("a[href='http://google.com']").attr('href', 'http://bing.com');
		console.log('href replace');
  
  if the body has this class
    if ($('body').hasClass('home')) {
        console.log('has home class');
    } else {
		console.log('no home class');
	    $("a[href='http://google.com']").attr('href', 'http://bing.com');
    }  
});