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
const delay = ms => new Promise(res => setTimeout(res, ms)); | |
// Selectors at the top for easy modification | |
const unfollowListContainerSelector = '.x78zum5.x1q0g3np.x1a02dak.x1qughib'; // Container holding the 3-dot buttons | |
const threeDotSelector = '.x1b0d499.xep6ejk'; // The 3-dot menu button selector | |
const unfollowText = 'unfollow'; // The text of the unfollow button in the menu | |
/** | |
* Smoothly scrolls the page down by a specified distance in small steps. | |
* Resolves when bottom of the page is reached. |