Browse files

refactor autopagination and polling to solve issues with twitter's aj…

…ax pages

The "timeline" element constantly changes, so we cannot hold a reference to it
for too long. Fixes autopagination on replies, inbox, favorites and search.

Autopagination is done by triggering the click on the "more" button. This way
the loading of the next page is one by Twitter code, not us. We listen to
jQuery ajax events and do post-processing on the content if necessary.
  • Loading branch information...
mislav committed Jun 4, 2009
1 parent 4c0f7f9 commit 201c97396627cdddd8a063a6f1faa9f3182404a2
@@ -24,7 +24,7 @@ class Gm < Thor
- desc 'check', %(Checks scriptLength property on both local and remote file)
+ desc 'check', %(Checks scriptSize property on both local and remote file)
def check
Net::HTTP.start('') do |http|
for name, id in self.class.scripts
@@ -39,7 +39,7 @@ class Gm < Thor do |script|
script.each do |line|
- if line =~ /\bscriptLength = (\d+)\b/
+ if line =~ /\bscriptSize: (\d+)\b/
hardcoded_size = $1.to_i
Oops, something went wrong.

0 comments on commit 201c973

Please sign in to comment.