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

Function addFloatingEmoji

scripts/fb_moreReactionStory.js:136–151  ·  view source on GitHub ↗
(emoji, ele)

Source from the content-addressed store, hash-verified

134 }, 1e3);
135 }
136 function addFloatingEmoji(emoji, ele) {
137 let floatingEmoji = document.createElement("div");
138 floatingEmoji.className = "floating-emoji always-enable-animations";
139 floatingEmoji.textContent = emoji;
140
141 let { top, left } = ele.getBoundingClientRect();
142 floatingEmoji.style.position = "fixed";
143 floatingEmoji.style.top = top + "px";
144 floatingEmoji.style.left = left + "px";
145 floatingEmoji.style.zIndex = 10000;
146 document.body.appendChild(floatingEmoji);
147
148 setTimeout(() => {
149 floatingEmoji.remove();
150 }, 2e3);
151 }
152 function reactStory(user_id, fb_dtsg, story_id, message) {
153 return new Promise(async (resolve, reject) => {
154 const variables = {

Callers 1

loadModalFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected