-
Notifications
You must be signed in to change notification settings - Fork 0
/
background.html
31 lines (26 loc) · 964 Bytes
/
background.html
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
30
31
<html>
<script type="text/javascript" src="assets/scripts/jquery.js"></script>
<script type="text/javascript" src="assets/scripts/Queue.js"></script>
<script>
// create instance of the queue
var wikiqueue = new Queue();
// update icon
wikiqueue.setBadge();
//create the context menu
chrome.contextMenus.create({
title: "Queue this link",
contexts: ["link"],
documentUrlPatterns: ["http://*.wikipedia.org/*"],
onclick: function(e){wikiqueue.setItem(e);}
});
// Google Analytics code
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24932668-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</html>