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
| function processSpintax(text) { | |
| // Define the regex that captures the innermost { ... } | |
| const regex = /\{([^{}]+)\}/; | |
| // Keep going while the text still matches { ... } | |
| while (regex.test(text)) { | |
| text = text.replace(regex, (match, contents) => { | |
| // Split the contents by "|" | |
| const parts = contents.split('|'); | |
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
| // Run this in the browser console on any profile's timeline page | |
| (async function() { | |
| // Set to store unique tweets | |
| let tweetsSet = new Set(); | |
| let scrollAttempts = 0; | |
| const maxScrollAttempts = 5; // Number of times to try scrolling without new tweets before stopping | |
| // Function to sleep for a given time (in milliseconds) | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); |
NewerOlder