-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground.html
More file actions
29 lines (27 loc) · 805 Bytes
/
Copy pathbackground.html
File metadata and controls
29 lines (27 loc) · 805 Bytes
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
26
27
28
29
<html>
<head>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24620401-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script>
chrome.history.onVisited.addListener(function(result) {
if(result.url == ("https://plus.google.com/"))
{
chrome.cookies.get({url:"https://plus.google.com", name:"favoriteStream"}, function(cookie)
{
if (cookie.value !=null)
chrome.tabs.executeScript(null,{code:"window.location='stream/circles/"+cookie.value+"'"});
}
);
}
});
</script>
</head>
</html>