forked from cezarsa/silver_bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
executable file
·345 lines (315 loc) · 18.2 KB
/
options.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/options.css" />
<link rel="stylesheet" type="text/css" href="css/colorpicker/colorpicker.css" />
<script src="lib/3rdparty/jquery.js"></script>
<script src="lib/3rdparty/colorpicker.js"></script>
<script src="lib/math_utils.js"></script>
<script src="lib/shortener_lib.js"></script>
<script src="lib/options/options.js"></script>
<script src="lib/options/page.js"></script>
<title>Silver Bird Options</title>
</head>
<body>
<h1 class="i18n" id="options_title">Silver Bird Options</h1>
<div id="saved_notice">
<span class="i18n" id="conf_saved">Your configuration has been successfully saved!</span>
<div id="restart_notice">
<span class="i18n" id="changes_restart">
However, some of your changes require the extension to be restarted. Would you like to do it now?<br>
(This will reset your unread tweets count.)
</span>
<br>
<input type="button" class="i18n" id="Yes" value="Yes">
<input type="button" class="i18n" id="No" value="No">
</div>
</div>
<div id="main_area">
<p>
<span class="i18n" id="remaining_api_hits">Remaining Twitter API Hits: </span><span class="twitter_hits_left"></span><br>
<span class="i18n" id="rate_limit_reset">Rate Limit Reset: </span><span class="twitter_hits_reset"></span>
<a id="nerds_link" href="#" class="i18n">API Hits stats (for nerds)</a>
<canvas id="nerds" width="650" height="500" style="display: none;"></canvas>
</p>
<fieldset>
<legend id="g_ui" class="i18n">UI</legend>
<label for="name_attribute" id="l_name_attribute" class="i18n">Name in tweets:</label>
<select name="name_attribute">
<option value="screen_name" id="o_screen_name" class="i18n">Screen name (nickname)</option>
<option value="name" id="o_name" class="i18n">Real name</option>
<option value="both" id="o_both" class="i18n">Both names</option>
</select><br>
<label for="compose_position" id="l_compose_position" class="i18n">Compose area position:</label>
<select name="compose_position">
<option value="top" id="o_top" class="i18n">Top</option>
<option value="bottom" id="o_bottom" class="i18n">Bottom</option>
</select><br>
<label for="theme" id="l_theme" class="i18n">UI Theme:</label>
<select name="theme">
<option value="css/chromified.css,css/chromified-theme/jquery-ui-1.7.2.custom.css">Chromified</option>
<option value="css/whisper.css,css/whisper-theme/jquery-ui-1.7.2.custom.css">Whispers</option>
<option value="css/darkness-theme/jquery-ui-1.7.2.custom.css,css/darkness.css">Darkness</option>
</select><br>
<label for="font_size" id="l_font_size" class="i18n">Font Size:</label>
<select name="font_size">
<option value="0.8em" id="o_small" class="i18n">Small</option>
<option value="1.0em" id="o_normal" class="i18n">Normal</option>
<option value="1.2em" id="o_large" class="i18n">Large</option>
<option value="1.4em" id="o_extra_large" class="i18n">Extra Large</option>
</select><br>
<label for="default_locale" class="i18n" id="l_default_locale">Default Locale:</label>
<select name="default_locale"></select><br>
<label for="font_family" id="l_font_family" class="i18n">Font Family:</label>
<input type="text" style="width: 20em"; name="font_family" validator="required"><br>
<label for="hover_timeout" class="i18n" id="l_hover_timeout">Hover to read time (ms):</label>
<input type="text" name="hover_timeout" validator="required,number,positive"><br>
<label for="show_expanded_urls" class="i18n" id="l_show_expanded_urls">Expand shortened URLs:</label>
<input type="checkbox" id="show_expanded_urls" name="show_expanded_urls" /><br>
<label for="reply_all" class="i18n" id="l_reply_all">Reply to all mentioned:</label>
<input type="checkbox" id="reply_all" name="reply_all" /><br/>
<label for="show_hits_in_popup" class="i18n" id="l_show_hits_in_popup">Show API hits count:</label>
<input type="checkbox" id="show_hits_in_popup" name="show_hits_in_popup" /><br/>
<label for="show_user_autocomplete" class="i18n" id="l_show_user_autocomplete">Autocomplete usernames:</label>
<input type="checkbox" style="margin-bottom: 7px;" id="show_user_autocomplete" name="show_user_autocomplete" /><br/>
<label id="l_icon_color" class="i18n">Icon color:</label>
<canvas name="idle_color" width="19" height="19" class="color_selector" must_restart></canvas><br/>
<label for="tweets_color_only_unified" id="l_tweets_color_only_unified" class="i18n">Colors only in unified:</label>
<input type="checkbox" name="tweets_color_only_unified" /><br/>
<table class="tweet_color">
<tr>
<th></th>
<th class="i18n" id="w_Home">Home</th>
<th class="i18n" id="w_Mentions">Mentions</th>
<th class="i18n" id="w_DM">DMs</th>
<th class="i18n" id="w_Lists">Lists</th>
<th class="i18n" id="w_Favorites">Favorites</th>
<th class="i18n" id="w_Search">Search</th>
<tr>
<td class="label i18n" id="l_tweet_color">Tweet color:</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="home_tweets_color" class="color_selector"></div>
</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="mentions_tweets_color" class="color_selector"></div>
</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="dms_tweets_color" class="color_selector"></div>
</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="lists_tweets_color" class="color_selector"></div>
</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="favorites_tweets_color" class="color_selector"></div>
</td>
<td>
<div class="color_selector checkerboard"></div>
<div name="search_tweets_color" class="color_selector"></div>
</td>
</tr>
</table><br>
<input type="button" value="Reset Popup Size" class="i18n" id="btn_reset_popup_size">
</fieldset>
<fieldset>
<legend class="i18n" id="g_notifications">Notifications</legend>
<table class="notifications">
<tr>
<th></th>
<th class="i18n" id="l_tweet_notificacion">Tweet Notification</th>
<th class="i18n" id="l_change_icon">Change Icon</th>
<th class="i18n" id="l_icon_color_column">Icon Color</th>
<tr>
<td class="label i18n" id="notif_home">Home:</td>
<td><input type="checkbox" name="home_on_page"></td>
<td><input type="checkbox" name="home_icon"></td>
<td><canvas name="home_color" width="19" height="19" class="color_selector"></canvas></td>
</tr>
<tr>
<td class="label i18n" id="notif_mentions">Mentions:</td>
<td><input type="checkbox" name="mentions_on_page"></td>
<td><input type="checkbox" name="mentions_icon"></td>
<td><canvas name="mentions_color" width="19" height="19" class="color_selector"></canvas></td>
</tr>
<tr>
<td class="label i18n" id="notif_dms">DMs:</td>
<td><input type="checkbox" name="dms_on_page"></td>
<td><input type="checkbox" name="dms_icon"></td>
<td><canvas name="dms_color" width="19" height="19" class="color_selector"></canvas></td>
</tr>
<tr>
<td class="label i18n" id="notif_lists">Lists:</td>
<td><input type="checkbox" name="lists_on_page"></td>
<td><input type="checkbox" name="lists_icon"></td>
<td><canvas name="lists_color" width="19" height="19" class="color_selector"></canvas></td>
</tr>
<tr>
<td class="label i18n" id="notif_search">Search:</td>
<td><input type="checkbox" name="search_on_page"></td>
<td><input type="checkbox" name="search_icon"></td>
<td><canvas name="search_color" width="19" height="19" class="color_selector"></canvas></td>
</tr>
</table><br>
<label for="tweets_notification_style" class="i18n" id="l_tweets_notification_style">Notification Style:</label>
<input type="radio" name="tweets_notification_style" value="on_page" id="noti_on_page"> <label for="noti_on_page" class="radio_opt i18n" id="l_noti_on_page">Notify on Page</label>
<input type="radio" name="tweets_notification_style" value="desktop" id="noti_desktop"> <label for="noti_desktop" class="radio_opt i18n" id="l_noti_desktop">Desktop Notifications</label><br>
<label for="notification_fade_timeout" class="i18n" id="l_notification_fade_timeout">Notification Timeout (s):</label>
<input type="text" name="notification_fade_timeout" validator="required,number,positive" converter="RefreshInterval"><br>
<label for="notification_max_popups" class="i18n" id="l_notification_max_popups">Notifications at once (-1: all):</label>
<input type="text" name="notification_max_popups" validator="required,number"><br>
<label for="notify_retweets" class="i18n" id="l_notify_retweets">Notify retweets of my tweets?</label>
<input type="radio" name="notify_retweets" value="always" id="notify_rt_always"> <label for="notify_rt_always" class="radio_opt i18n" id="l_notify_rt_always">Always</label>
<input type="radio" name="notify_retweets" value="only_first" id="notify_rt_only_first"> <label for="notify_rt_only_first" class="radio_opt i18n" id="l_notify_rt_only_first">First One Only</label>
<input type="radio" name="notify_retweets" value="never" id="notify_rt_never"> <label for="notify_rt_never" class="radio_opt i18n" id="l_notify_rt_never">Never</label><br>
</fieldset>
<fieldset>
<legend class="i18n" id="g_shortener">Shortener</legend>
<label for="url_shortener" class="i18n" id="l_url_shortener">URL Shortener:</label>
<select name="url_shortener"></select><br>
<p id="shortener_opts">
<label for="shortener_acct" class="i18n" id="l_shortener_acct">Use Personal Account?</label>
<input type="checkbox" name="shortener_acct"><br>
<label for="shortener_login" class="i18n" id="l_shortener_login">API Login:</label>
<input type="text" name="shortener_login"><br>
<label for="shortener_key" class="i18n" id="l_shortener_key">API Key:</label>
<input type="text" name="shortener_key">
</p>
<p id="yourls_opts">
<label for="shortener_yourls_service">Service URL:</label>
<input type="text" name="shortener_service_url"> (http://yoursite.com/yourls-api.php)<br>
<label for="yourls_key">Signature token:</label>
<input type="text" name="yourls_key">
</p>
<p id="googl_opts">
<label for="googl_personal_account" class="i18n" id="l_shortener_oauth">Use personal account authentication:</label>
<input type="checkbox" name="shortener_oauth"><br/>
</p>
<label for="share_include_title" class="i18n" id="l_share_include_title">Include page title (sharing):</label>
<input type="checkbox" name="share_include_title"><br>
</fieldset>
<fieldset>
<legend class="i18n" id="g_image_service">Image Service</legend>
<label for="url_shortener" class="i18n" id="l_image_up_service">Image Upload Service:</label>
<select name="image_upload_service"></select>
</fieldset>
<fieldset>
<legend class="i18n" id="g_trending_topics">Trending Topics</legend>
<label for="trending_topics_woeid" class="i18n" id="l_trending_topics_woeid">Trending Topics Locale:</label>
<select name="trending_topics_woeid"></select>
</fieldset>
<fieldset>
<legend class="i18n" id="g_timelines">Timelines</legend>
<p class="notice i18n htmlSafe" style="text-align: center; color: black;" id="notice_api_hits">
You should keep API hits <span style="color: red;">below <span class="__hourly_limit"></span></span>! Otherwise Silver Bird will stop working properly and timelines won't update anymore.<br>
<span style="color: red;">Remember</span> that if you're using multiple Twitter clients you'll need to keep your API hits even lower.
</p>
<p class="hits_notice">
<span class="i18n" id="l_hits_notice">API hits per hour: </span><span id="predicted_hits_count"></span> / <span class="__hourly_limit"></span>
</p>
<table class="timelines">
<tr>
<th></th>
<th id="l_visible" class="i18n">Visible</th>
<th id="l_refresh_interval" class="i18n">Refresh Interval (s)</th>
<th id="l_include_in_unified" class="i18n">Include in unified timeline</th>
<tr>
<td class="label i18n" id="l_unified_timeline">Unified Timeline:</td>
<td><input type="checkbox" name="unified_visible" validator="unifiedValidator"></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td class="label i18n" id="notif_home">Home:</td>
<td><input type="checkbox" name="home_visible"></td>
<td><input type="text" name="home_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="home_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="notif_mentions">Mentions:</td>
<td><input type="checkbox" name="mentions_visible"></td>
<td><input type="text" name="mentions_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="mentions_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="notif_dms">DM:</td>
<td><input type="checkbox" name="dms_visible"></td>
<td><input type="text" name="dms_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="dms_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="notif_lists">Lists:</td>
<td><input type="checkbox" name="lists_visible"></td>
<td><input type="text" name="lists_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="lists_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="notif_search">Search:</td>
<td><input type="checkbox" name="search_visible"></td>
<td><input type="text" name="search_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="search_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="tml_favorites">Favorites:</td>
<td><input type="checkbox" name="favorites_visible"></td>
<td><input type="text" name="favorites_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td><input type="checkbox" name="favorites_include_unified"></td>
</tr>
<tr>
<td class="label i18n" id="l_blocked_users">Blocked Users:</td>
<td>-</td>
<td><input type="text" name="blockedusers_refresh_interval" validator="required,number,minRefresh" converter="RefreshInterval"></td>
<td>-</td>
</tr>
</table>
<p id="notice_right_click_change" class="notice i18n" style="color: black;">
* Hey, now you can use the right-click context menu to change most of this settings directly into the popup window. Just get
out of here! :)
</p>
</fieldset>
<fieldset>
<legend class="i18n" id="g_timelines">Timelines</legend>
<label for="tweets_per_page" class="i18n" id="l_tweets_per_page">Tweets per Page:</label>
<input type="text" name="tweets_per_page" validator="required,number,positive" must_restart><br>
<label for="max_cached_tweets" class="i18n" id="l_max_cached_tweets">Max Shown Tweets:</label>
<input type="text" name="max_cached_tweets" validator="required,number,positive" must_restart><br>
</fieldset>
<fieldset>
<legend class="i18n" id="g_microblogging_service">Microblogging Service</legend>
<input type="radio" name="microblogging_service" value="twitter" id="service_twitter" must_restart> <label for="service_twitter" class="radio_opt">Twitter</label>
<input type="radio" name="microblogging_service" value="identica" id="service_identica" must_restart> <label for="service_identica" class="radio_opt">identi.ca</label>
</fieldset>
<fieldset>
<legend class="i18n" id="g_advanced">Advanced</legend>
<label for="request_timeout" class="i18n" id="l_request_timeout">Request Timeout (ms):</label>
<input type="text" name="request_timeout" validator="required,number,positive" must_restart><br>
<label for="base_url" class="i18n" id="l_base_url">Twitter's API URL:</label>
<input type="text" name="base_url" style="width: 300px;" validator="required,url" must_restart><br>
<label for="base_oauth_url" class="i18n" id="l_base_oauth_url">OAuth URL:</label>
<input type="text" name="base_oauth_url" style="width: 300px;" validator="required,url" must_restart><br>
<label for="same_signing_urls" class="i18n" id="l_same_signing_urls">Same signing URLs:</label>
<input type="checkbox" name="same_signing_urls"><br>
<label for="base_signing_url" class="i18n" id="l_base_signing_url">API Signing URL:</label>
<input type="text" name="base_signing_url" style="width: 300px;" validator="required,url" must_restart><br>
<label for="base_oauth_signing_url" class="i18n" id="l_base_oauth_signing_url">OAuth Signing URL:</label>
<input type="text" name="base_oauth_signing_url" style="width: 300px;" validator="required,url" must_restart><br>
<label for="base_search_url" class="i18n" id="l_base_search_url">Search API URL:</label>
<input type="text" name="base_search_url" style="width: 300px;" validator="required,url" must_restart><br>
<label for="use_streaming_api" class="i18n" id="l_use_streaming_api">Use streaming API:</label>
<input type="checkbox" name="use_streaming_api" must_restart><br>
<label for="user_stream_url" class="i18n" id="l_user_stream_url">User Stream URL:</label>
<input type="text" name="user_stream_url" style="width: 300px;" validator="required,url" must_restart><br>
</fieldset>
<br>
<div id="buttons_area">
<input type="button" class="i18n" value="Save" id="btn_save">
<input type="button" class="i18n" value="Reset" id="btn_reset">
<input type="button" class="i18n" value="Reset to default" id="btn_default">
</div>
</div>
<a class="locales_report" href="locales.html">Locales Report</a>
</body>
</html>