Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 383 Bytes

javascript.md

File metadata and controls

20 lines (15 loc) · 383 Bytes

JavaScript

// Click on buttons in a page
// https://twitter.com/brian_lovin/status/1240662440666222597

let buttons = document.getElementsByClassName("unfollow");

for (let [i, v] of [...buttons].entries()) {
  setTimeout(() => {
    buttons[i].click();
  }, i * 500);
}
// Go to specific URL
window.location.href = "https://www.google.com";