MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / focusTo

Function focusTo

scripts/fb_autoLike.js:35–43  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

33 const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
34
35 function focusTo(element) {
36 element.dispatchEvent(
37 new MouseEvent("pointerover", {
38 view: window,
39 bubbles: true,
40 cancelable: true,
41 })
42 );
43 }
44
45 function scrollToBottom() {
46 window.scrollTo(0, document.body.scrollHeight, { behavior: "smooth" });

Callers 1

startAutoLikeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected