Changeset 5037
- Timestamp:
- 01/20/08 13:58:23 (10 months ago)
- Location:
- lang/javascript/userscripts
- Files:
-
- 4 modified
-
twitter_logged_in_as.user.js (modified) (2 diffs)
-
twitterbotautofollowlink.user.js (modified) (1 diff)
-
twitterfollow.user.js (modified) (4 diffs)
-
twitterrepliescontext.user.js (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/twitter_logged_in_as.user.js
r378 r5037 10 10 var w = typeof unsafeWindow != 'undefined' ? unsafeWindow : window; 11 11 12 var screen_name = GM_getValue('screen_name'); 12 var screen_name = GM_getValue('screen_name'); 13 13 if (screen_name) { 14 14 show(screen_name); … … 17 17 GM_xmlhttpRequest({ 18 18 method: 'GET', 19 url : 'http://twitter.com/home',19 url : location.protocol + '//twitter.com/home', 20 20 onload: function(r) { 21 screen_name = r.responseText.match(/<a href="http:\/\/twitter\.com\/(.+?)".+?>your profile<\/a>/)[1]; 22 if (!screen_name) return; 23 show(screen_name); 21 if(/<a href="https?:\/\/twitter\.com\/([^"]+)"[^>]*>your profile<\/a>/.test(r.responseText)) 22 show(RegExp.$1); 24 23 } 25 24 }); -
lang/javascript/userscripts/twitterbotautofollowlink.user.js
r2664 r5037 7 7 // @include http://twitter.com/gihyo/statuses/* 8 8 // @include http://twitter.com/nicovNEW/statuses/* 9 // @include https://twitter.com/plagger/statuses/* 10 // @include https://twitter.com/hatebu/statuses/* 11 // @include https://twitter.com/gihyo/statuses/* 12 // @include https://twitter.com/nicovNEW/statuses/* 9 13 // ==/UserScript== 10 14 Array.filter(document.getElementsByTagName('a'),function(a){if(a.target=='_blank'){location.href=a.href}}) -
lang/javascript/userscripts/twitterfollow.user.js
r3275 r5037 6 6 // @include http://twitter.com/followers* 7 7 // @include http://twitter.com/followers?page=* 8 // @include https://twitter.com/followers 9 // @include https://twitter.com/followers* 10 // @include https://twitter.com/followers?page=* 8 11 // ==/UserScript== 9 12 … … 13 16 var x = { 14 17 followButtons: '//button[.="follow"]', 15 nextLink: '//a[contains(@class, "section_links") ][contains(@rel, "next")]'18 nextLink: '//a[contains(@class, "section_links") and contains(@rel, "next")]' 16 19 }; 17 20 var run = !!GM_getValue('run'); … … 41 44 startButton.innerHTML = 'Stop following!'; 42 45 startButton.onclick = stopFollowing; 43 46 44 47 var r = document.evaluate(x.followButtons, document, null, 7, null); 45 48 loop(r.snapshotLength, function(i) { … … 77 80 } 78 81 } 79 82 80 83 /* 81 84 // Emulate a mouse event -
lang/javascript/userscripts/twitterrepliescontext.user.js
r3639 r5037 9 9 // @conpatible Greasemonkey 10 10 // @include http://twitter.com/* 11 // @include https://twitter.com/* 11 12 // @exclude http://twitter.com/*/friends 12 13 // @exclude http://twitter.com/account/* … … 19 20 // @exclude http://twitter.com/invitations 20 21 // @exclude http://twitter.com/tos 22 // @exclude https://twitter.com/*/friends 23 // @exclude https://twitter.com/account/* 24 // @exclude https://twitter.com/badges/ 25 // @exclude https://twitter.com/devices 26 // @exclude https://twitter.com/direct_messages 27 // @exclude https://twitter.com/followers 28 // @exclude https://twitter.com/friends 29 // @exclude https://twitter.com/help/* 30 // @exclude https://twitter.com/invitations 31 // @exclude https://twitter.com/tos 21 32 // ==/UserScript== 22 33 … … 58 69 GM_xmlhttpRequest({ 59 70 method: 'GET', 60 url: 'http://twitter.com/statuses/user_timeline/' + obj.name + '.json',71 url: location.protocol + '//twitter.com/statuses/user_timeline/' + obj.name + '.json', 61 72 onload: function(res) { 62 73 var div = new RepliesContext.View.context(); … … 188 199 $N('a', { 189 200 class: 'url', 190 href: 'http://twitter.com/' + ctx.user.screen_name201 href: location.protocol + '//twitter.com/' + ctx.user.screen_name 191 202 }, [ 192 203 $N('img', { … … 200 211 $N('a', { 201 212 title: ctx.user.name, 202 href: 'http://twitter.com/' + ctx.user.screen_name213 href: location.protocol + '//twitter.com/' + ctx.user.screen_name 203 214 }, ctx.user.screen_name) 204 215 ]), … … 208 219 class: 'entry-date', 209 220 rel: 'bookmark', 210 href: 'http://twitter.com/' + ctx.user.screen_name + '/statuses/' + ctx.id221 href: location.protocol + '//twitter.com/' + ctx.user.screen_name + '/statuses/' + ctx.id 211 222 }, [ 212 223 $N('abbr', { … … 239 250 $N('a', { 240 251 title: ctx.user.name, 241 href: 'http://twitter.com/' + ctx.user.screen_name252 href: location.protocol + '//twitter.com/' + ctx.user.screen_name 242 253 }, ctx.user.screen_name) 243 254 ]) … … 260 271 }, 'Request to follow ' + ctx.user); 261 272 follow.addEventListener('click', function(e) { 262 var loading = $N('img', { src: 'http://static.twitter.com/images/loader.gif' });273 var loading = $N('img', { src: location.protocol + '//static.twitter.com/images/loader.gif' }); 263 274 this.parentNode.insertBefore(loading, this.nextSibling); 264 275 var self = this; 265 276 GM_xmlhttpRequest({ 266 277 method: 'GET', 267 url: 'http://twitter.com/friendships/create/' + ctx.user + '.json',278 url: location.protocol + '//twitter.com/friendships/create/' + ctx.user + '.json', 268 279 onload: function(res) { 269 280 self.parentNode.removeChild(loading); … … 285 296 '@', $N('a', { 286 297 title: ctx.user, 287 href: 'http://twitter.com/' + ctx.user298 href: location.protocol + '//twitter.com/' + ctx.user 288 299 }, ctx.user), 289 300 ': ', … … 358 369 '@', 359 370 $N('a', { 360 href: 'http://twitter.com/' + obj.name371 href: location.protocol + '//twitter.com/' + obj.name 361 372 }, obj.name) 362 373 ])
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)