Bitcoin Forum
January 19, 2026, 11:12:50 AM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [UserScript] Buttons for hidden BBCode tags  (Read 110 times)
TypoTonic (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 372



View Profile WWW
January 18, 2026, 07:37:37 AM
Last edit: Today at 06:33:23 AM by TypoTonic
Merited by joker_josue (5), alani123 (3), Halab (2), PX-Z (1), Mia Chloe (1)
 #1

I was designing a signature yesterday, and I found it really annoying to type or copy/paste the [nbsp] tag whenever I need to use it. So I tried to make a simple userscript that adds a button for it, then I ended up including some hidden BBCode tags from this list.

Preview:
Quote

I just made this for my personal use, but might as well share it here in case other users find it useful. I drew the icons myself and tried to make it look/feel native as much as possible. If you want to try it out, download and install the Tampermonkey extension, create a new script, and copy/paste the source code from below.

Link: https://pastebin.com/dNurCBVA

Included tags:
Quote
Name
 
Button
 
Code
 
Output
 
Description
Acronym
[acronym=Simple Machines Forum]SMF[/acronym]
SMFDisplays the full expression for the acronym on mouseover*
Anchor
[anchor=point1]Point 1[/anchor]
Point 1Reference point for iurl tag
iURL
[iurl=#point1]Go to Point 1[/iurl]
Go to Point 1Behaves like normal url tag, but also redirect to anchor points
No BBCode
[nobbc][nobbc][/nobbc][/nobbc]
[nobbc][/nobbc]Prevents BBCode tags inside it from being parsed
Abbreviation
[abbr=exemlpi gratia]eg[/abbr]
egDisplays the full expression for the abbreviation on mouseover*
Left-to-Right
[ltr]left to right![/ltr]
left to right!
Typical usage would be to post English in an Arabic or Hebrew document*
Right-to-Left
[rtl]right to left![/rtl]
right to left!
Typical usage would be to post Arabic or Hebrew in an English document*
Non-Breaking Space
[nbsp]
 Prevents text from breaking to a new line
Square
[#]
Square bullets
Disc
[*]
Dot bullets
Circle
[o]
Circle bullets

*comments from SMF Bulletin Board Code

alani123
Legendary
*
Offline Offline

Activity: 3010
Merit: 1743


Condoras: Aθάνατoς


View Profile
January 18, 2026, 08:18:26 AM
 #2

Ok this seems interesting.

Could you add some info on what each tag does?
I'm also interested how you found these. Lurking over SMF code? I had no idea.most of these even existed  Cheesy


███████▄▄███▄███▄
███▄▄████████▌██
▄█████████████▐██▌
██▄███████████▌█▌
███████▀██████▐▌█
██████████████▌▌▐
████████▄███████▐▐
█████████████████
███████████████▄██▄
██████████████▀▀▀
█████▀███▀▀▀

▄▄▄██████▄▄▄███████▄▄▄
███████████████████████████
███▌█████▀███▌█████▀▀███████████▄▄▄▄▄▄▄▄
███▌█████▄███▌█████▄███▐███████████████████▄
▐████████████▀███████▄██████████▀▀▀▀▀▀▀▀████▀
▐████████████▄██▄███████████▌█████████▄████▀
▐█████████▀█████████▌█████████████▄▄████▀
██████████▄███████████▐███▌██▄██████▀
██████████████▀███▐███▌██████████████████████
████▀██████▀▀█████████▌███▀▀▀▀███▀▀▀▀▀▀▀████▌
 
      P R E M I E R   B I T C O I N   C A S I N O   &   S P O R T S B O O K      

█▀▀









▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

  98%  
RTP

 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀█









▀▀▀

█▀▀









▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 HIGH 
ODDS

 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀█









▀▀▀
 
..PLAY NOW..
satscraper
Legendary
*
Offline Offline

Activity: 1344
Merit: 2466



View Profile
January 18, 2026, 08:47:23 AM
 #3

~

It seems to be useful. I just can’t understand the purpose of "No BBCode" button. I looked at your script and in my understanding the following part

Code:
{
            title: 'No BBCode',
            openingTag: '[nobbc]',
            closingTag: '[/nobbc]',
            icon: 'https://talkimg.com/images/2026/01/17/UNuAEw.gif'
        },

can be removed to prevent this button from appearing. Another concern I have is that the new icons rely heavily on the talkimg service. What happens if that service stops working?

▄▄███████████████████▄▄
▄███████████████████████▄
████████████████████████
█████████████████████████
████████████████████████
████████████▀██████▀████
████████████████████████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
████████████████████████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
 EARNBET 
██
██
██
██
██
██
██
██
██
██
██
██
██
███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████
██
██
██
██
██
██
██
██
██
██
██
██
██


▄▄▄
▄▄▄███████▐███▌███████▄▄▄
█████████████████████████
▀████▄▄▄███████▄▄▄████▀
█████████████████████
▐███████████████████▌
███████████████████
███████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 King of The Castle 
 $200,000 in prizes
██
██
██
██
██
██
██
██
██
██
██
██
██

 62.5% 

 
RAKEBACK
BONUS
TypoTonic (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 372



View Profile WWW
January 18, 2026, 09:03:41 AM
Merited by alani123 (5)
 #4

Could you add some info on what each tag does?
Oh yeah, sorry about that! I'll add an 'Output' and 'Description' column in the table.

I'm also interested how you found these. Lurking over SMF code? I had no idea.most of these even existed  Cheesy
I'm actually working on a detailed BBCode documentation for a while now (something that is different from the existing guides of course), since some of these codes aren't included in the SMF Bulletin Board Code. But I'm still not ready to publish it yet, I'd say it's around 80% complete.

It seems to be useful. I just can’t understand the purpose of "No BBCode" button.
No BBCode prevents the tags from being parsed, that's why I was able to write [nbsp] in the OP.

Another concern I have is that the new icons rely heavily on the talkimg service. What happens if that service stops working?
The buttons should still work but will show the alternative text instead. Unfortunately, that's one limitation of the script, unless the icons get added to the forum's official resources.

Mia Chloe
Legendary
*
Offline Offline

Activity: 952
Merit: 1867


Contact me for your designs...


View Profile
January 18, 2026, 11:56:05 AM
 #5

I was designing a signature yesterday, and I found it really annoying to type or copy/paste the [nbsp] tag whenever I need to use it. So I tried to make a simple userscript that adds a button for it, then I ended up including some hidden BBCode tags from this list.
I was pretty much convinced a long time ago that the SMF codes are just HTML 5 syntaxes but with square brackets instead. Anyone with solid understanding and familiarity with HTML syntaxes will not be surprised about these syntaxes. Some I can't find here still though like the php syntax although it's not popular based off usage.

Anyways thumbs up for making this but it would be more interesting if we had these on the Go without having to install an extension. I think admins picked only the fundamental ones.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
TypoTonic (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 372



View Profile WWW
January 18, 2026, 02:10:54 PM
 #6

I was pretty much convinced a long time ago that the SMF codes are just HTML 5 syntaxes but with square brackets instead. Anyone with solid understanding and familiarity with HTML syntaxes will not be surprised about these syntaxes. Some I can't find here still though like the php syntax although it's not popular based off usage.
Yup, there are only a few differences but it's pretty much almost the same. I only chose some tags from the list that I think would be useful, like the anchor & iurl, nbsp, nobbc, and some bullet styles. There are also 4 tags in the SMF table that didn't have buttons, so I included those as well. I could try to include more tags if people ask for it.

Anyways thumbs up for making this but it would be more interesting if we had these on the Go without having to install an extension. I think admins picked only the fundamental ones.
That would indeed be great. The [nbsp] tag for example was proposed by PowerGlove in 2023, and added by theymos. It would've been nice if they made a button for it officially.

PX-Z
Legendary
*
Offline Offline

Activity: 2058
Merit: 1254


Wallet transaction notifier @txnNotifierBot


View Profile
Today at 05:31:00 AM
 #7

[iurl] tag really just work like normal url tag, those description/feature will work on [url] tag as well. What is new to me is [acronym], although it seems like not really useful. The "[abbr]" tag. And the list style type tags too.

Also, you can use  "[a]" tag for "Anchor" instead of using the whole word. Wink

Thanks for this.

.
.. GAMBLR........ 🎰 🎲 ♠️........Premium Crypto Sportsbook and Casino....... 𝕏 .....  .....   PLAY NOW    
TypoTonic (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 372



View Profile WWW
Today at 06:40:15 AM
 #8

[iurl] tag really just work like normal url tag, those description/feature will work on [url] tag as well.
Interesting. This got me curious so I tried it in the OP. It seems like whenever you use fragments with the [url] tag (e.g., [url=#point1]Go to Point 1[/url]), it immediately turns into [iurl] tags after posting. Grin

What is new to me is [acronym], although it seems like not really useful. The "[abbr]" tag. And the list style type tags too.
I think these tags have always been in the SMF table, but since they don't have buttons, not a lot of users know about it.

Also, you can use  "[a]" tag for "Anchor" instead of using the whole word. Wink
I tried this, but it doesn't seem to work. [a=point1]Point 1[/a]

joker_josue
Legendary
*
Offline Offline

Activity: 2268
Merit: 6532


Trêvoid █ No KYC-AML Crypto Swaps


View Profile WWW
Today at 07:47:06 AM
Merited by TypoTonic (1)
 #9

Congratulations on the script; it could be useful for whoever uses it.

In turn, whether or not the script is used, the tags you just listed will help everyone interested to have more resources to make their posts, in case they were not familiar with these tags.

 
.Winna.com..

░░░░░░░▄▀▀▀
░░


▐▌▐▌
▄▄▄▒▒▒▄▄▄
████████████
█████████████
███▀▀███▀

▄▄

██████████████
████████████▄
█████████████
███▄███▄█████▌
███▀▀█▀▀█████
████▀▀▀█████▌
████████████
█████████████
█████
▀▀▀██████

▄▄
THE ULTIMATE CRYPTO
...CASINO & SPORTSBOOK...
─────  ♦  ─────

▄▄██▄▄
▄▄████████▄▄
██████████████
████████████████
███████████████
████████████████
▀██████████████▀
▀██████████▀
▀████▀

▄▄▄▄

▄▄▀███▀▄▄
▄██████████▄
███████████
███▄▄
▄███▄▄▄███
████▀█████▀███
█████████████████
█████████████
▀███████████
▀▀█████▀▀

▄▄▄▄


.....INSTANT.....
WITHDRAWALS
 
...UP TO 30%...
LOSSBACK
 
 

   PLAY NOW   
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!