Bitcoin Forum
November 14, 2018, 01:41:12 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
   Home   Help Search Login Register More  
Pages: [1]
Author Topic: Automatic URL shortener for bitcointalk posts  (Read 132 times)
Offline Offline

Activity: 1596
Merit: 1185


View Profile WWW
February 22, 2018, 11:49:34 PM
Merited by CodyAlfaridzi (3), Vod (2), owlcatz (1)

bitcointalk URL shortener
+ Tampermonkey/Greasemonkey script

Several times I've needed to shorten bitcointalk URLs, especially when including more than one link on trust I've left, "Reference link" is not enough and I don't like posting things like "" on other users' profiles.

So I've created a simple service which takes the topic and msg parameters from that URL, base-62 encodes them and writes a short URL like: for this post, or for my profile

No database is ever used. It's basically just a URL re-writer.
The creation of these short URLs is done offline on your browser using JS. The forwarding is done on the server (for convenience and to increase compatibility) but nothing is stored and no DB is used.

There are 2 ways to create these links:

1: No installation required, recommended to use it once or a few times only
  • Copy the full URL of a post or a topic
  • Go to (make sure JS is enabled on your browser)
  • Paste the full URL
  • The short URL will appear, ready to be copied

Supported formats are: => =>;u=169515 =>;u=169515 =>;u=169515 =>

2: A simple installation is required to make everything automatic
  • Install Tampermonkey on Chrome, Greasemonkey on Firefox, or Violentmonkey on Opera (Read more here:
  • Install this user script: (for my convenience, it's based on grue's Merit script)
  • Make sure it's enabled and open any thread on
  • Click on #msg (for example #1) shown on any post (see image)
  • A popup will appear showing the short URL, along with the original one (so no functionality is lost). Just copy it. Click the same link again to close it
  • A small (Link) will appear next to every poster's name
  • Click it to show short links to the user's profile, trust and merit

  • To make the URL shorter, it is shown without any protocol. If you want you can use http or https, both will work.
  • The alphabet used to convert topic and msg to base-62 is 0-9, a-z, A-Z, in that order

  • Added support to shorten users' profiles, trust and merit
  • Improved design to make it look like part of the forum
  • Fixed an issue that prevented it from working correctly when clicking any link and goign back
  • Initial release

Post here if you have any question or suggestion, or if something's not working fine.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Offline Offline

Activity: 1596
Merit: 1185


View Profile WWW
February 25, 2018, 02:16:15 AM

I've updated this to 0.2.
I made some improvements and added support for profiles:

Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!