Greets, all. I'm working on a full web app to interface with Twitter (http://bit.ly/EAfxM), but meanwhile I'm addressing some of my minor annoyances with the first-party interface via Chromium extension.
You can find it here: http://trevorbramble.com/public/twitter_fixer.crx It doesn't currently do much, but I got ambitious today and decided I wanted the update streams to ...update. On their own. Seems like something a computer would do, right? My first attempt was to invoke the JavaScript function published by in Twitter's on source file, initializeTimeline(). But it doesn't seem as if I have access to that. Probably a conscious scoping thing. So my second attempt, which is what's in place now, looks like: ------------------------------ function refreshTimeline(){ setTimeout("$('#primary_nav>li.active>a').click();",60000); refreshTimeline(); } refreshTimeline(); ------------------------------ Which *seems* tidy, and in fact just running the click ($ ('#primary_nav>li.active>a').click();) from the console works like a dream. However the infinite loop does not work out... In the console, I get this error after defining and calling the function: ------------------------------ RangeError: Maximum call stack size exceeded ------------------------------ ...and it doesn't actually execute the click. Within the extension, however, it does execute. It's hard to miss, as it consumes whichever CPU the tab process is on wholly, and takes a good deal of time. Meanwhile that tab is locked, with the scrollbar immovable and the activity throbber locked in place. It does eventually complete the operation successfully, but the path to that goal is a bit rocky. =^) Does anyone have suggestions for another way to attack this? Is there some way I could see inside the scope of the extension via the Developer Tools console? Anything else I may have missed? Thanks, Trevor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
