This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// type must be (modue) | |
import * as Brevo from "@getbrevo/brevo"; | |
import express from "express"; | |
const api_key = "YOUR_API_KEY_HERE"; | |
const client = new Brevo.TransactionalEmailsApi(); | |
client.setApiKey(0, api_key); | |
const sendSmtpEmail = new Brevo.SendSmtpEmail(); | |
sendSmtpEmail["subject"] = "this is subject"; | |
sendSmtpEmail["htmlContent"] = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(async function unfollow() { | |
const unfollowbuttons = document.getElementsByClassName( | |
"_acan _acap _acat _aj1- _ap30" | |
); | |
let index = 0; | |
if (unfollowbuttons.length <= index) return; | |
unfollowbuttons[index].click(); | |
new Promise((resolve, _reject) => setInterval(resolve, 2000)); |