Links, Kinks, and the Big Three

We have some really great Tribes on the Hive blockchain, i.e., groups with their own token and blogging interface. However, there are three main, generic interfaces: HIVE.BLOG (the default interface) as well as ECENCY and PEAKD (two enhanced interfaces).

Many people share links to Hive posts on Discord, Twitter, Facebook, Instagram, and other sites. Links also come up in search engine results such as those from Bing, Google, and Yahoo. When we post links from the Hive blockchain, they come from whatever interface we're using at the time. All of these links will bring the reader to a real post on the Hive blockchain, but that link might not open in the interface that the reader prefers for reading, commenting, and upvoting. Unfortunately, there is no one link that will work for everyone, since we all have different interfaces we like. But, there is a solution, down below!

Let's examine the anatomy of a link from the Hive blockchain and see what it contains. With a few exceptions, links from Hive look like this actual link, taken from one of my recent posts about petrified wood:

XXXXX/hive-124452/@thekittygirl/petrified-wood

The 'XXXXX' part represents the Domain Name of the platform from which the link was taken. It can be one of the 'Big Three' interfaces:

  • hive.blog
  • ecency.com
  • peakd.com

Or, it could also be the Domain Name of one of the forty+ Tribes on Hive, such as:

  • palnet.io
  • leofinance.io
  • splintertalk.io
  • travelfeed.io
  • etc.

The next part of our sample URL (hive-124452) represents the Community to which it was posted ~OR~ the first tag used on the post. Next, we have the user account (@thekittygirl) who published the post. The remaining portion after the slash (petrified-wood) is usually the beginning of the title. I say "beginning" because there is a character-limit to titles. If you publish a post with a very lengthy title, it might be truncated.

If a post opens in a non-preferred interface, you can edit the address-link as shown by the green arrow, below. Simply replace the given Domain Name wth that of the interface you prefer to use for reading and hit the ENTER key.

FOR EXAMPLE:

peakd.com/hive-124452/@thekittygirl/petrified-wood

BECOMES:

ecency.com/hive-124452/@thekittygirl/petrified-wood

OR:

hive.blog/hive-124452/@thekittygirl/petrified-wood


screenshot showing where to change the Domain Name (green arrow)

Although editing the URL as mentioned above works fine, it can get a little tedious if many links are clicked in a day, such as when one is curating posts from #post-promo channels in Discord. Fortunately, there is a better solution! Thanks to @sgt-dan for sharing a little Javascript trick with me sometime back in @theterminal's Discord server.

All that is required is to create a bookmark in one's browser, best placed in the 'Bookmarks Bar' so it is always visible and easy to click. The following screenshot shows the Bookmarks Bar in my Opera-GX browser (see the gold box and gold arrow), which looks similar in most other browsers. Once creating the bookmark(s), you will see something similar to what is shown by the orange arrow and box, below.

For details of what should be in the bookmark, keep reading!


screenshot showing 'Bookmarks Bar' in my Opera-GX browser (gold arrow) and Javascript bookmarks (orange arrow)

ā— Here is the code for the ECENCY bookmark:

javascript:(function(){location.assign("http://" + ((location.hostname == "www.hive.blog") ? "peakd.com" : "www.ecency.com") + ((location.pathname.split("/")[1].indexOf("@") == -1) ? location.pathname : ("/" + location.pathname.split("/")[1])))})();

ā— Here is the code for the HIVE.BLOG bookmark:

javascript:(function(){location.assign("http://" + ((location.hostname == "www.ecency.com") ? "peakd.com" : "hive.blog") + ((location.pathname.split("/")[1].indexOf("@") == -1) ? location.pathname : ("/" + location.pathname.split("/")[1])))})();

ā— Here is the code for the PEAKD bookmark:

javascript:(function(){location.assign("http://" + ((location.hostname == "www.hive.blog") ? "ecency.com" : "www.peakd.com") + ((location.pathname.split("/")[1].indexOf("@") == -1) ? location.pathname : ("/" + location.pathname.split("/")[1])))})();

Once constructed, open any post. Clicking on the ECENCY bookmark should immediately switch to a view of the post in the Ecency.com interface! The same will be true for the HIVE.BLOG and PEAKD bookmarks! Switching between interfaces will be easy-peasy! If you prefer using LeoFinance.io, PALnet.io, or any of the other interfaces to the Hive blockchain, just edit the Javascript code, as appropriate, and create a new bookmark!

I would also like to thank @melinda010100 because it was something she said to me in Discord recently that gave me the idea for this post. So, thanks, Melinda, and I hope this will help many people on the Hive ecosystem!

Ā šŸ˜Š


Ā  Ā  Ā  Ā 



25-Nov-2021

H2
H3
H4
3 columns
2 columns
1 column
42 Comments
Ecency