Skip to content

Instantly share code, notes, and snippets.

@insin
Created August 2, 2023 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insin/fe95a6d7c26601256f4d76ef4bbac96b to your computer and use it in GitHub Desktop.
Save insin/fe95a6d7c26601256f4d76ef4bbac96b to your computer and use it in GitHub Desktop.
Get currently-loaded user entities on twitter.com
entities = $('#react-root')._reactRootContainer._internalRoot?.current?.memoizedState?.element?.props?.children?.props?.store?.getState()?.entities?.users?.entities
users = {}
for (let user of Object.values(entities)) {
users[user.screen_name] = user
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment