chrome.extension.sendMessage({}, function(response) { var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(readyStateCheckInterval); console.log("yalebook is running on this page."); // Set new homepage logo $('._5lus').html(''); $('._5lus').css('position','relative'); $('._5lus').css('padding-right','12px'); // Set font to yale font $('body').css('font-family', 'yalenew'); $('div').css('font-family', 'yalenew') $('input').css('font-family', 'yalenew') // Change colors to yale colors $('#blueBarNAXAnchor').css('background-image','none'); $('#blueBarNAXAnchor').css('background-color','#0e4c92'); // Change page title document.title = "Yalebook" } }, 10); });