Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add icons, analytics for chrome store

  • Loading branch information...
commit 7f7666e9068d6dab158574dba1b5a18562b701ce 1 parent f9a008b
@presbrey presbrey authored
View
8 background.coffee
@@ -131,11 +131,11 @@ server = new Server
setEnabled = ->
enabled = !enabled
if enabled
- chrome.browserAction.setIcon
- path: 'rdf_flyer.48-color.gif'
+ chrome.browserAction.setBadgeText
+ text: ''
else
- chrome.browserAction.setIcon
- path: 'rdf_flyer.48-gray.gif'
+ chrome.browserAction.setBadgeText
+ text: 'OFF'
chrome.extension.onMessage.addListener (message, sender, respond) ->
if message.method in ['disable', 'enable']
View
8 ga.js
@@ -0,0 +1,8 @@
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-37902434-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);
+})();
View
10 manifest.json
@@ -1,25 +1,25 @@
{
- "background": { "scripts": ["background.js"] },
+ "background": { "scripts": ["background.js", "ga.js"] },
"content_security_policy": "script-src 'self' https://; object-src 'self'",
"description": "Linked Data Browser",
"icons": {
- "48": "rdf_flyer.48-color.gif"
+ "128": "rdf_flyer.128-color.png",
+ "48": "rdf_flyer.48-color.png"
},
"manifest_version": 2,
"name": "Tabulator",
"browser_action": {
- "default_icon": "rdf_flyer.48-color.gif",
+ "default_icon": "rdf_flyer.128-color.png",
"default_popup": "popup.html",
"default_title": "Linked Data Browser"
},
"permissions": [
- "file:///*",
"http://*/*",
"https://*/*",
"unlimitedStorage",
"webRequest",
"webRequestBlocking"
],
- "version": "0.0",
+ "version": "0.0.0.0",
"web_accessible_resources": ["skin.html"]
}
View
BIN  rdf_flyer.128-color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  rdf_flyer.48-color.gif
Deleted file not rendered
View
BIN  rdf_flyer.48-color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  rdf_flyer.48-gray.gif
Deleted file not rendered
Please sign in to comment.
Something went wrong with that request. Please try again.