Skip to content

Instantly share code, notes, and snippets.

@whonion
Created October 7, 2023 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whonion/ede2e8bae08d0203505be762f25c5eaa to your computer and use it in GitHub Desktop.
Save whonion/ede2e8bae08d0203505be762f25c5eaa to your computer and use it in GitHub Desktop.
js-debank-auto-folow.js
// Find all buttons on the page
var buttons = document.querySelectorAll('.Button_button__1yaWD');//If need change element's code here
// Specify the text you want to search for on the button
var searchText = 'Follow';
// Loop through the buttons and click the one with the specified text
buttons.forEach(function(button) {
if (button.textContent === searchText) {
button.click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment