Skip to content

Commit b9ff45a

Browse files
committed
Fix getting user and tweet info from React state
Fixes getting quote tweet/retweet/like counts for focused tweets and follower counts for hiding/showing blue check replies Closes #543
1 parent 52bc8fd commit b9ff45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ function getElement(selector, {
17551755
function getStateEntities() {
17561756
let reactRootContainer = ($reactRoot?.wrappedJSObject ? $reactRoot.wrappedJSObject : $reactRoot)?._reactRootContainer
17571757
if (reactRootContainer) {
1758-
let entities = reactRootContainer._internalRoot?.current?.memoizedState?.element?.props?.children?.props?.store?.getState()?.entities
1758+
let entities = reactRootContainer.current?.memoizedState?.element?.props?.children?.props?.store?.getState()?.entities
17591759
if (entities) {
17601760
return entities
17611761
} else {

0 commit comments

Comments
 (0)