-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json.erb
46 lines (46 loc) · 1.21 KB
/
manifest.json.erb
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<%# -*- Mode: javascript; indent-tab-mode: nil; js-indent-level: 2 -*- -%>
<%
version = ENV['VERSION'] or die("showbot/manifest.json.erb: VERSION not set")
target = ENV['TARGET'] or die("build.sh.erb: TARGET not set") %>{
"author": "Eric Promislow",
"browser_action": {
<% if target == 'firefox' %>
"browser_style": true,
<% end %>
"default_title": "Showbot"
},
"background": {
"scripts": ["content/browser-polyfill.min.js", "background_scripts/watch_tabs.js"]
},
"content_scripts": [
{
"matches": ["https://twitter.com/*"],
"js": ["content/showBots.js"]
}
],
"default_locale": "en",
"description": "Expose twitter bots",
<% if target == 'firefox' %>
"developer": {
"name": "Eric Promislow",
"url": "https://github.com/ericpromislow/showbot"
},
<% end %>
"homepage_url": "https://github.com/ericpromislow/showbot",
"icons": {
"48": "icons/sb-48x48.png",
"96": "icons/sb-96x96.png",
"128": "icons/sb-128x128.png"
},
"manifest_version": 2,
"name": "Showbot",
"permissions": [
"activeTab",
"tabs",
"*://twitter.com/*",
"*://botometer.iuni.iu.edu/*",
"storage"
],
"short_name": "Showbot",
"version": "<%= version %>"
}