bnew

Veteran
Joined
Nov 1, 2015
Messages
63,940
Reputation
9,808
Daps
174,277
Okay, let's call this bookmarklet... BBCode Transformer Plus!
BBCode Transformer Plus is like a little magic wand for text areas on websites. Imagine you're typing in a box online, maybe on a forum or a website that uses special codes called BBCode to make your text look fancy (like bold, underlined, or have links).
This bookmarklet helps you in two main ways:
  1. It takes a different kind of special code (the $$...$$ stuff) and turns it into the website's regular fancy code ([...] BBCode). Think of it like a translator. If you type things like $$URL=website.com$$My Link$$\/URL$$, this tool will change it into the website's understood format: My Link. It does this for different things like making text bold ($$B$$), italic ($$I$$), adding images ($$IMG$$), headings ($$HEADING=2$$), lists ($$LIST$$, $$*$$), and even special math symbols ($$...$$). It also tries to be smart about extra spaces you might accidentally type in these special codes.
  2. It also directly works with the website's regular fancy codes ([...] BBCode) for website links. If you already have a link written like My Link, this tool will automatically add an underline to it, making it My Link. It does the same for simple links written as website.com, turning them into website.com.
Essentially, this tool makes it easier for you to format your text in online text boxes. If you're used to typing in one style of special codes, it can convert them to the style the website understands. Plus, it automatically adds underlines to any existing or newly converted website links to make them stand out. It also does some tidying up of extra line breaks and removes some other types of special formatting ($$FONT$$, $$COLOR$$) to keep things clean.

bugfix update:
5/14/2025
fixed no space issue [/u][u]

pastebin.com/QuMuJms5

 

bnew

Veteran
Joined
Nov 1, 2015
Messages
63,940
Reputation
9,808
Daps
174,277
What This Userscript Does on Invidious Instances

In simple terms:
This userscript adds a floating "BB" button to Invidious video pages. When you click the button, it enables extra copy features to help you quickly grab comments or video info in BBCode format, ready for pasting into forums or platforms that accept BBCode.​



Key Features and Functionality

  1. Floating "BB" Button for Activation
    - A round "BB" button appears at the bottom-left of the Invidious screen.
    - Clicking it turns on or off the BBCode tool.
    - When active, the button turns red to show it's enabled.​
  2. Comment Copy Features
    - Each comment gains two new clipboard buttons:
    Copy Comment: Grabs the comment, author, date, number of likes, and the direct comment link, then formats it all into BBCode.
    Copy Nested (Parents): Lets you also include the parent comments (the comments above the one you're copying, in a reply chain).
    - It opens a dropdown to choose how many parent comments to include (e.g., just the selected comment, or also replies above it).
    - Each entry is indented to show the hierarchy and includes author, date, likes, BBCode-formatted content, and links.​
  3. Video Metadata Copy Feature
    - Adds a clipboard button under the video’s subscribe area.
    - Clicking this copies:
    • Video title
    • Original YouTube link
    • Channel name and link
    • View count, likes, publish date
    • Video description (also formatted into BBCode)
    - This whole package is formatted for easy sharing in a BBCode forum post.​
  4. BBCode Formatting
    - Converts HTML tags (like bold, italics, links) used in comments or descriptions into BBCode equivalents.
    - Example:
    <b>text</b> becomes text
    • Links become [icode]url[/ICODE]
    • Paragraphs become line breaks.​
  5. User Feedback
    - Shows a popup toast message like "Comment copied!" or "Video metadata copied!" to confirm when something is successfully sent to your clipboard.​
  6. Works Dynamically
    - The script actively monitors the page, so if comments or the video area change (for example, when you load new comments), it automatically attaches the copy buttons as needed.
    - You can deactivate the tool anytime by clicking the BB button again, which removes all extra buttons and resets the tool.​



Feature Summary Table

FeatureWhat it DoesHow to Use
Floating BB ButtonTurns BBCode copy features on/offClick the BB button
Copy CommentCopies individual comment as BBCode (incl. author, likes, date, BBCode formatting)Click 📋 on comment
Copy with ParentsCopies comment and chain of parent replies, with indentation and BBCode formattingClick 📋 (blue) and select depth
Copy Video MetadataCopies all main video info and description as BBCodeClick 📋 near subscribe button
BBCode FormattingChanges HTML formatting to BBCode (bold, italics, links) for safe forum pastingAutomatic
Dynamic & ReversibleWorks with page changes; can be turned off/on easilyClick BB again to disable



Why Use This Script?

  • Saves time: Instant BBCode for comments or videos, no manual formatting.
  • Preserves context: Nested parent feature helps keep the reply chain intact for discussions.
  • Easy to toggle: Simple interface, no clutter when deactivated.
  • Forum-friendly: Outputs are ready to paste in forums or wikis that use BBCode for formatting.



In short, this userscript is a handy tool for forum users who want to easily share Invidious video comments or video information in well-formatted BBCode, with minimal hassle.

lm7kLDe.png


example ouput:
Code:
[ICODE]https://www.youtube.com/watch?v=example12345&lc=comment123[/ICODE]
SoftwareFan commented on May 10, 2025 | Likes: 54

This was exactly what I needed! I had an old Dell laptop from 2012 that was basically unusable with Windows, and now it runs [B]perfectly[/B] with Linux Mint. Thank you so much for this guide!

[ICODE]https://www.youtube.com/watch?v=example12345&lc=comment456[/ICODE]
LinuxNewbie commented on May 12, 2025 | Likes: 28

I'm having trouble with the GRUB bootloader. When I try to boot after installation, I just get a black screen. Any suggestions?

│   [ICODE]https://www.youtube.com/watch?v=example12345&lc=comment789[/ICODE]
│   TechHelperGuy commented on May 12, 2025 | Likes: 15
│   
│   @LinuxNewbie Try adding the "nomodeset" parameter to your boot options. I explain how to do this at 8:45 in the video. If that doesn't work, let me know what graphics card you're using!


pastebin.com/3TVJGgbQ
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
63,940
Reputation
9,808
Daps
174,277
.
What is "Bluesky to bbcode v1.2.3"?

A Simple Tool to Copy Bluesky Posts as Forum-Ready BBCode

"Bluesky to bbcode v1.2.3" is a JavaScript bookmarklet you can run while viewing posts on the Bluesky social network. It lets you quickly convert an entire Bluesky post (plus replies and images) into BBCode, the formatting language used by forums like XenForo and vBulletin. When you use this tool, you get a complete, clean BBCode version of the post, making it easy to share Bluesky content elsewhere.

How Does It Work?​


  • 1. Activating the Tool: You run the script (usually saved as a browser bookmark) while looking at a Bluesky post or thread.
  • 2. Selecting Posts: The tool pops up a prompt so you can pick how many posts or replies to copy (for example, just the main post, or the post with the first 5 replies).
  • 3. Collecting Data: It scans the page for visible posts, grabbing the text, author, and any images or video links.
  • 4. Preserves Formatting: All links, mention tags, and quoted/referenced posts are converted to BBCode tags ([U], [URL], [img], [QUOTE]), making them display cleanly on most major forums.
  • 5. Handles Media: Images are turned into `[img]IMAGE_LINK[/img]` tags, and video links are preserved as clickable links.
  • 6. Supports Quotes and Threads: If a post is quoting another post, this is included as a clearly identified section in the output.
  • 7. Ready for Forums: The final result is shown as a BBCode block, ready to paste directly into a forum post – you just paste it into your reply or new thread.
  • 8. Automatic Copy: Once done, it automatically copies the BBCode to your clipboard and shows a little popup saying how many posts were copied.

  • Typical Output Format Includes:
    • Direct link to the Bluesky post
    • All included posts and replies in order
    • All attached images, formatted for forums
    • Clickable links for videos and external sites
    • Quotes and nested conversations clearly marked out
    • A "spoiler" section showing the full text and media, collapsed by default for tidy forum display


Example: What Does the BBCode Look Like?​

Code:
https://bsky.app/profile/exampleuser/post/abc123

[SPOILER="full text & large images"]

1/2
🇺🇸 exampleuser
This is the main post's text here.

[img]https://cdn.bsky.app/examplepic1.jpg[/img]

2/2
🇺🇸 anotheruser
A reply to the main post!

[img]https://cdn.bsky.app/examplepic2.jpg[/img]

[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]


In summary: "Bluesky to bbcode v1.2.3" makes it easy to turn any Bluesky post or thread (with images, quotes, and links) into clean, forum-ready BBCode so you can share Bluesky content on sites like XenForo, vBulletin, or any BBCode-compatible forum in just seconds!

No technical knowledge needed—Just highlight, copy, and paste!

MWpwSpd.png

example output from screenshot above:
Code:
https://bsky.app/profile/nbanewyork.bsky.social/post/3lpeqwwlx6s2z
[SPOILER="full text & large images"]

1/1
🇺🇸 nbanewyork.bsky.social

[U][URL]https://video.bsky.app/watch/did%3Aplc%3Akoh3mxmkaou5mkvy6wgj6lk7/bafkreid7kf2rkabb7clw6gkhjg7gyld3qiwixx2mmcednsu4fl5j4ki424/playlist.m3u8[/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]

update:
5/17/25
replace 🇺🇸 with 🆔 (the ID emoji followed by a space) before profile names.


pastebin.com/wLBTWN1d

originally posted 5/17/2025

pastebin.com/mu1LVzTK
 
Last edited:
Top