MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / getReactInstance

Method getReactInstance

lib/Utils/src/Utils.ts:1313–1331  ·  view source on GitHub ↗

* 获取元素上的使用React框架的实例属性,目前包括reactFiber、reactProps、reactEvents、reactEventHandlers、reactInternalInstance * @param element 需要获取的目标元素 * @returns * @example * Utils.getReactInstance(document.querySelector("input"))?.reactProps?.onChange({target:{value:"123"}});

(element: HTMLElement | Element)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

checkTargetFunction · 0.80
coverPlayletListFunction · 0.80
coverPostListContainerFunction · 0.80
callbackFunction · 0.80
callbackFunction · 0.80
coverRecommendFunction · 0.80
callbackFunction · 0.80
coverMusicFunction · 0.80
setFunction · 0.80
unlockImageQualityFunction · 0.80

Calls 6

forEachMethod · 0.80
setMethod · 0.65
keysMethod · 0.45
startsWithMethod · 0.45
getMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected