MCPcopy Index your code
hub / github.com/refined-github/refined-github / scrollIntoViewIfNeeded

Function scrollIntoViewIfNeeded

source/github-helpers/index.ts:200–203  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

198}
199
200export function scrollIntoViewIfNeeded(element: Element): void {
201 // @ts-expect-error No Firefox support https://developer.mozilla.org/docs/Web/API/Element/scrollIntoViewIfNeeded
202 (element.scrollIntoViewIfNeeded ?? element.scrollIntoView).call(element);
203}
204
205export function getConversationBody(): Element {
206 return $([

Callers 3

scrollOnSearchFunction · 0.85
quickApproveFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected