DEV Community

Jacob Paris
Jacob Paris

Posted on


A Twitter Bot for Passive ❤️s

Paste this into your browser console (or make a plugin with Scriptish) and posts will ❤️ themselves automatically as you scroll

setInterval(() => {
  const heart = document.querySelector(`[data-testid="like"]`);
}, 1408);
Enter fullscreen mode Exit fullscreen mode

Or paste this into the address bar

javascript:setInterval((heart=document.querySelector(`[data-testid="like"]`)) => {heart &&;}, 1500);
Enter fullscreen mode Exit fullscreen mode

disclaimer: Automated likes are against Twitter ToS

second disclaimer: don't go to anyone's profile or you'll look like a stalker

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.