File size: 857 Bytes
1abfaca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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('<img src=' + chrome.extension.getURL('content/yale-logo-white-default.png') + '>');
			$('._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);
});