From 7e3ed2a14e361d715ff0fecd9cc141338622c5b6 Mon Sep 17 00:00:00 2001 From: Cezar Sa Espinola Date: Sun, 20 Feb 2011 22:56:51 -0300 Subject: [PATCH] Displaying options to enable user stream. --- _locales/en/messages.json | 10 ++++++++-- lib/twitter_lib.js | 1 + options.html | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 14353e39..accf7c39 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -671,10 +671,16 @@ "trending_topics": { "message": "Trends" }, - "g_trending_topics":{ + "g_trending_topics": { "message": "Trending Topics" }, - "l_trending_topics_woeid":{ + "l_trending_topics_woeid": { "message": "Trending Topics Locale:" + }, + "l_use_streaming_api": { + "message": "Use streaming API (experimental!):" + }, + "l_user_stream_url": { + "message": "User Stream URL:" } } diff --git a/lib/twitter_lib.js b/lib/twitter_lib.js index 9d4c44eb..57a51791 100755 --- a/lib/twitter_lib.js +++ b/lib/twitter_lib.js @@ -67,6 +67,7 @@ TwitterLib.prototype = { var xhr = new XMLHttpRequest(); xhr.open('GET', url + '?' + $.param(params), true); + xhr.setRequestHeader('X-User-Agent', 'Chromed Bird ' + JSON.parse(Persistence.version().val()).join('.')); this.signOauth(xhr, url, params, 'GET'); var _this = this; diff --git a/options.html b/options.html index c921bb93..20cf2451 100755 --- a/options.html +++ b/options.html @@ -581,6 +581,7 @@

Chromed Bird Options

Advanced +
@@ -598,6 +599,12 @@

Chromed Bird Options


+ + +
+ + +