javascript - Obtaining a reference to the streamManager of the internal object model on twitter.com -
for greasemonkey script running on twitter.com, need access twttr.streams.tweetstream
instance of main timeline (dubbed 'home' internally) programmatically. i'm using firebug , javascript deminifier bring js code readable form. way, work out access via twttr.app.currentpage().streammanager.streams.current
in gm script.
this has worked on last months. today, twitter seems have changed code, breaking approach (not fault, ;)).
i can still current page via twttr.app.currentpage()
. however, doesn't have streammanager
field anymore.
i've tried various paths there, dead ends. unfortunately, don't understand class system using yet. seems streammanager
property still there -- on mixin called mixins/streamablepage
, should provided class twttr.components.pages.home
. can't figure out how access it, though. (or if class system hides in impenetrable way.) mixin provides getstreammanager()
method, can't access either, e.g. via twttr.app.currentpage().getstreammanager()
. there trick need perform access these mixins outside?
can spot alternative method instance? note need original instance used on timeline page. yes, create new instance via new twttr.streams.tweetstream()
, i'm trying hook original events.
i aware use case unsupported gets, that's why i'm asking you, not them. :) record, i'm not attempting evil, providing additional functionality myself.
until change again, twttr.app.currentpage()._instance.getstreammanager()
Comments
Post a Comment