Skip to content

Instantly share code, notes, and snippets.

View ann0nip's full-sized avatar

Juan Martin Gimenez ann0nip

View GitHub Profile
@ann0nip
ann0nip / index.js
Created November 7, 2022 15:24
Automate accept LinkedIn invitations 🤖
(async () => {
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const acceptButtons = document.querySelectorAll('[aria-label*="Accept"]');
for (const acceptButton of acceptButtons) {
acceptButton.click()
await sleep(2000);
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',