adjusted the output. this only saves tweets from the parents username aka tweet author. this also extracts video urls from nitter instances that support direct video links.
This bookmarklet is designed to run on a Nitter instance, which is an alternative front-end for Twitter. Here’s what it does in layman's terms:
This bookmarklet is designed to run on a Nitter instance, which is an alternative front-end for Twitter. Here’s what it does in layman's terms:
- Collect Tweets: It scans the current page for tweets and logs how many tweets it finds.
- Identify Username: It identifies the username of the user whose tweets are being collected.
- Extract Tweet Content:
- For each tweet, it extracts the text content, including any quoted tweets and media (images and videos).
- It cleans up the text by removing HTML tags and formatting links and media URLs.
- Collect Thread Continuation URLs: It collects URLs of continued threads if any.
- Format Text: It formats all extracted tweet texts into a single string with spoilers for full text and large images.
- Copy to Clipboard: It copies the formatted text to your clipboard.
- Display Notification: It shows a temporary notification that the tweets have been copied.
Here's an example of what might be copied to your clipboard:
This output includes:
Code:
https://twitter.com/username/status/1234567890
[SPOILER="thread continued"]
https://twitter.com/username/status/1234567891
https://twitter.com/username/status/1234567892
[/SPOILER]
[SPOILER="full text & large images"]
1/3
This is the first tweet text.
[img]https://pbs.twimg.com/media/image.jpg[/img]
2/3
This is the second tweet text with a quoted tweet:
[Quoted tweet]
Quoted text here
[U][URL]https://twitter.com/otheruser/status/0987654321[/URL][/U]
3/3
This is the third tweet text with a video:
[U][URL]https://video.twimg.com/ext_tw_video/1234567890.mp4[/URL][/U]
[COLOR=rgb(184, 49, 47)][B][SIZE=5]To post tweets in this format, more info here: [URL]https://www.thecoli.com/threads/tips-and-tricks-for-posting-the-coli-megathread.984734/post-52211196[/URL][/SIZE][/B][/COLOR]
[/SPOILER]
- The original URL of the first tweet.
- A spoiler containing URLs of continued threads.
- A spoiler containing all formatted tweet texts along with any media links and quoted tweets.
Last edited: