Created
December 10, 2025 23:27
-
-
Save codazoda/3af1a99d4b1f0d635ea8074d214f13ca to your computer and use it in GitHub Desktop.
Rolling Collector - X Thread to Text Bookmarklet
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
| javascript:(function()%7B%20%20%20/*%20Initialize%20the%20collection%20bucket%20*/%20%20%20if(window.collectingInterval)%20return;%20/*%20Prevent%20double-run%20*/%20%20%20let%20seenTweets%20=%20new%20Set();%20%20%20%20%20%20/*%20Create%20the%20floating%20counter%20button%20*/%20%20%20const%20btn%20=%20document.createElement('button');%20%20%20btn.innerText%20=%20'0%20Tweets%20(Tap%20to%20Copy)';%20%20%20btn.style.cssText%20=%20'position:fixed;%20bottom:20px;%20right:20px;%20z-index:999999;%20padding:15px;%20background:blue;%20color:white;%20border-radius:30px;%20border:none;%20box-shadow:0%204px%2012px%20rgba(0,0,0,0.3);%20font-weight:bold;%20font-family:sans-serif;';%20%20%20document.body.appendChild(btn);%20%20%20%20/*%20The%20Scanner%20Function%20*/%20%20%20const%20scan%20=%20()%20=%3E%20%7B%20%20%20%20%20const%20nodes%20=%20document.querySelectorAll('%5Bdata-testid=%22tweetText%22%5D');%20%20%20%20%20nodes.forEach(node%20=%3E%20%7B%20%20%20%20%20%20%20%20%20/*%20Clean%20text%20to%20ensure%20key%20uniqueness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment