Binary files /tmp/3kSbgyVnuW/unity-webapps-twitter-2.4.7/128/unity-webapps-twitter.png and /tmp/huekYHi6ln/unity-webapps-twitter-2.4.10/128/unity-webapps-twitter.png differ Binary files /tmp/3kSbgyVnuW/unity-webapps-twitter-2.4.7/48/unity-webapps-twitter.png and /tmp/huekYHi6ln/unity-webapps-twitter-2.4.10/48/unity-webapps-twitter.png differ Binary files /tmp/3kSbgyVnuW/unity-webapps-twitter-2.4.7/52/unity-webapps-twitter.png and /tmp/huekYHi6ln/unity-webapps-twitter-2.4.10/52/unity-webapps-twitter.png differ Binary files /tmp/3kSbgyVnuW/unity-webapps-twitter-2.4.7/64/unity-webapps-twitter.png and /tmp/huekYHi6ln/unity-webapps-twitter-2.4.10/64/unity-webapps-twitter.png differ diff -Nru unity-webapps-twitter-2.4.7/Twitter.user.js unity-webapps-twitter-2.4.10/Twitter.user.js --- unity-webapps-twitter-2.4.7/Twitter.user.js 2012-10-04 15:37:44.000000000 +0000 +++ unity-webapps-twitter-2.4.10/Twitter.user.js 2012-10-18 20:26:30.000000000 +0000 @@ -20,12 +20,12 @@ function messagingIndicatorSetup() { function checkMessangesCount() { var title; - var search = document.getElementsByClassName('flex-table-input search-query js-search-header-query')[0]; + var search = document.getElementsByClassName('search-query')[0]; if (search) { // stream for #tag - title = search.value; + title = search.textContent; } if (document.getElementsByClassName('module mini-profile')[0]) { // home screen - title = _('Tweets'); + title = _("Tweets"); } if (title) { @@ -43,22 +43,24 @@ setInterval(wrapCallback(checkMessangesCount), 3000); } +var login; +var callback; if (isCorrectPage()) { var prefix = 'https://twitter.com/'; var profileLink = document.evaluate('//a[@data-nav="profile"]', document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue; - var login = profileLink.href; + login = profileLink.href; if (login.substr(0, prefix.length) === prefix) { login = login.substr(prefix.length); } else { login = null; } - - Unity.init({ name: "Twitter", - login: login, - domain: 'twitter.com', - homepage: 'https://twitter.com/', - iconUrl: "icon://unity-webapps-twitter", - onInit: wrapCallback(messagingIndicatorSetup) }); + callback = wrapCallback(messagingIndicatorSetup); } +Unity.init({ name: "Twitter", + login: login, + domain: 'twitter.com', + homepage: 'https://twitter.com/', + iconUrl: "icon://unity-webapps-twitter", + onInit: callback }); diff -Nru unity-webapps-twitter-2.4.7/debian/changelog unity-webapps-twitter-2.4.10/debian/changelog --- unity-webapps-twitter-2.4.7/debian/changelog 2012-10-04 20:31:47.000000000 +0000 +++ unity-webapps-twitter-2.4.10/debian/changelog 2012-10-18 20:54:43.000000000 +0000 @@ -1,3 +1,10 @@ +unity-webapps-twitter (2.4.10) quantal-proposed; urgency=low + + * Update Twitter icons (LP: #1068207) + * Improved loading of userscript (LP: #1068312) + + -- Alexandre Abreu Thu, 18 Oct 2012 10:01:19 -0400 + unity-webapps-twitter (2.4.7) quantal; urgency=low * Fix twitter website integration diff -Nru unity-webapps-twitter-2.4.7/manifest.json unity-webapps-twitter-2.4.10/manifest.json --- unity-webapps-twitter-2.4.7/manifest.json 2012-10-04 20:31:47.000000000 +0000 +++ unity-webapps-twitter-2.4.10/manifest.json 2012-10-18 20:26:30.000000000 +0000 @@ -1 +1 @@ -{"includes":["https://twitter.com/*"],"requires":["utils.js"],"name":"Twitter","scripts":["Twitter.user.js"],"maintainer":"Webapps Team ","manifest-version":"1.0","integration-version":"2.4.7","package-name":"Twitter","icons":{"128":"128/unity-webapps-twitter.png","48":"48/unity-webapps-twitter.png","52":"52/unity-webapps-twitter.png","64":"64/unity-webapps-twitter.png"},"domain":"twitter.com","homepage":"https://twitter.com/","license":"GPL-3"} \ No newline at end of file +{"includes":["https://twitter.com/*"],"requires":["utils.js"],"name":"Twitter","scripts":["Twitter.user.js"],"maintainer":"Webapps Team ","manifest-version":"1.0","integration-version":"2.4.10","package-name":"Twitter","icons":{"128":"128/unity-webapps-twitter.png","48":"48/unity-webapps-twitter.png","52":"52/unity-webapps-twitter.png","64":"64/unity-webapps-twitter.png"},"domain":"twitter.com","homepage":"https://twitter.com/","license":"GPL-3"} \ No newline at end of file