* used deepseek-R1 - perplexity finetune R1 1776
**doesn't get the replies to comments
The bookmarklet you're referring to is designed to extract comments from a TikTok video page and format them into a specific BBCode structure. Here's a detailed summary of what it does:
Version 1 (With Hyperlinks):
Version 2 (No Hyperlinks):
Example Output Format:
**doesn't get the replies to comments

The bookmarklet you're referring to is designed to extract comments from a TikTok video page and format them into a specific BBCode structure. Here's a detailed summary of what it does:
What the Bookmarklet Does:
- Extracts Comments: The bookmarklet scans the TikTok video page for comments. It looks for elements with specific classes that contain comment text, usernames, timestamps, and other relevant information.
- Formats Comments into BBCode: It takes the extracted information and formats it into a BBCode structure. This includes:
- Username: The username of the commenter is linked to their TikTok profile.
- Comment Text: The actual text of the comment.
- Timestamp: The time when the comment was posted.
- Replies: If a comment has replies, they are indented under the parent comment.
- Copies to Clipboard: Once all comments are formatted, the bookmarklet copies the BBCode output to your clipboard. This allows you to easily paste the comments into a forum or chat platform that supports BBCode.
- Progress Indicator: While processing comments, a progress bar appears at the top of the page, showing how many comments have been processed out of the total. This helps you track the progress.
- Toast Notification: After the process is complete, a small notification appears briefly at the top of the page, confirming that the comments have been copied to your clipboard.
- Character Limit: The bookmarklet has a character limit (default is 7,000 characters) to prevent extremely long outputs. If the total character count exceeds this limit, the output is truncated with a "[TRUNCATED]" indicator.
- Handles Nested Replies: The bookmarklet can handle nested replies, meaning it will correctly indent replies to comments and replies to those replies, maintaining a clear hierarchical structure.
- API Fetching for Hidden Replies: If a comment has a "View X replies" button, the bookmarklet attempts to fetch those hidden replies using TikTok's API. However, this requires authentication and might not work if you're not logged in or if TikTok restricts API access.
Summary in Simple Terms:
- Extracts comments from a TikTok video page.
- Formats them into BBCode with usernames linked, comment text, timestamps, and indented replies.
- Copies the output to your clipboard.
- Shows progress with a bar at the top.
- Notifies completion with a brief toast message.
- Handles nested replies and attempts to fetch hidden replies via API.
- Truncates output if it exceeds a certain character limit.
Version 1 (With Hyperlinks):
Version 2 (No Hyperlinks):
Example Output Format:
Code:
[SPOILER="tiktok comments"]
1/30
[url=https://www.tiktok.com/@beckabravo]@Becka Bravo[/url]
“It is easier to fool a man… than it is to convince a man… that he…. has been… fooled......” 🫥 how...
2-6
[url=https://www.tiktok.com/@blaine.star.moon]@Moonlight[/url]
I saw the best response...
3/12/2024
2/30
[url=https://www.tiktok.com/@ohwejo]@Wesley Kramer-Jones[/url]
“Cognitive negotiations with reality!” Speak on it 👏👏👏
[url=https://www.tiktok.com/@user819806061684]@user819806061684[/url]
What is her thought on everything now?
3/14/2024
[/SPOILER]