Skip to content

Instantly share code, notes, and snippets.

View MarinaGherman's full-sized avatar
🍒
Carpe Diem!

Marina MarinaGherman

🍒
Carpe Diem!
  • Como
View GitHub Profile
@MarinaGherman
MarinaGherman / bot.js
Created December 5, 2020 11:26
Instagram like bot to execute in browser console using js
/*
* To run this bot need to open web instagram, make login and search you interesting hashtag. For example: "#dog", "#travel" ... etc.
* Open first card. After open card you need to put the code into console. To open console look the documentation: https://developers.google.com/web/tools/chrome-devtools/open
* Don't forgot to replace text for const likeButtonText and nextButtonText in action function before paste it in console.
*/
function getNextButton(text) {
let aTags = document.getElementsByTagName("a");
let searchText = text;
let nextButton;