Website Navigation Bar

Dedicated board for extension releases/support threads

Moderators: FranklinDM, Lootyhoof

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Website Navigation Bar

Unread post by jobbautista9 » 2021-04-30, 06:05

If you don't know what a Website Navigation Bar is, see this thread on CodeVerge, the first answer by Dirk.

So I stumbled upon this thread last night, and I thought, "hey this should be easy to port in Borealis Navigator". And so I did port that toolbar. It was very easy, I got the toolbar working on Borealis, as well as the basic Top and Up buttons in just like 30 minutes. It's after all just simple copy-and-paste from SeaMonkey's XUL code and some minor alterations to make it work on Borealis. In the next morning, I fixed some bugs in the add-on, particularly the RSS/Atom feed function as well as the More button. I also added basic support for Pale Moon and Basilisk, and localization from SeaMonkey's lang packs. As a final touch, I used this Sburb logo from Homestuck, and recolored it to match SeaMonkey's logo color scheme.
icon.png
icon.png (3.24 KiB) Viewed 2665 times
Here's a screenshot of the add-on in Borealis Navigator:
website-navigation-bar.png
I hope federatedfly and RexyDallas, if they are still here, find this add-on useful. I think the Website Navigation Bar is not obsolete, and in fact is just even more relevant now that we are seeing JavaScript hell being used just to get basic navigation to work. Like guys, why are you reinventing the wheel, when there's already <link> tags for that?

The add-on will be available at https://addons.palemoon.org/addon/websi ... gation-bar once it's approved.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-04-30, 14:26

2.53-2 has been released! This is a minor bugfix release which fixes the known bug in Phoenix-based browsers, particularly where the toolbar doesn't update when you switch tabs. Thanks to FranklinDM for helping me fix this! :thumbup:
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Website Navigation Bar

Unread post by moonbat » 2021-04-30, 15:48

The toolbar seems to default to 'hide always' - I thought there was something wrong and I had to change it to 'show as needed' from the view menu in Borealis. Maybe you should make that the default so users at least know it is there.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-05-01, 04:05

Yeah, good point. I made it default now into "Show Always" for new users in the new 2.53-3 release. Also added a Tagalog locale as a bonus. :)
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

New Tobin Paradigm

Re: Website Navigation Bar

Unread post by New Tobin Paradigm » 2021-05-01, 04:07

You should really NEVER use a dash in the version number. It doesn't evaluate like you think it does in comparisons.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-05-01, 04:15

Yeah, my bad, sorry. I pushed the version number to 3.0 now. There's no code changes.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-05-01, 09:00

3.1 has been released! This is a minor bugfix release.

So I was hunting for known bugs in the Website Navigation Bar via Bugzilla, and stumbled upon bug #134436, which was reported 19 years ago. Apparently it doesn't recognize language codes that have a country identifier included (e.g. en-US, sv-SE, es-AR). So I fixed it, and it was relatively easy. I just had to include chrome://global/locale/regionNames.properties into my stringbundles, and define it in the linkToolbarHandler.js file. I used some test(x), substring(x[, y]), indexOf(x), and toLowerCase() trickery to make it work.

I also included the fix in comment #6 of the bug, so that SeaMonkey developers can finally fix this.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Website Navigation Bar

Unread post by moonbat » 2021-05-01, 11:02

jobbautista9 wrote:
2021-05-01, 09:00
which was reported 19 years ago
:shock:
I bet there's tons more like this. All while MozCo kept throwing their money around on tons of useless shit unrelated to fixing their browser.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
vinipsmaker
Newbie
Newbie
Posts: 3
Joined: 2021-06-06, 20:43

Re: Website Navigation Bar

Unread post by vinipsmaker » 2021-06-06, 20:50

Cool extension. Would it be possible to make mid-click on one of the navigation buttons to open the link in a new tab?

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-06-07, 06:09

Good idea. I just finished implementing the middle-click, ctrl-key, and shift-key checks in the extension. After I finish porting bug 1709443, I will push a new update. Might as well contribute back the middle-click and key checks to SeaMonkey once I updated the extension. :)
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-06-07, 07:24

3.3 has been released! This is a major update. I skipped 3.2 because there are three changes done in this update, which is pretty major, but not major enough for a 4.0 release.

First change is the ctrl-key, shift-key, and middle-click checks are now implemented. So if you middle-click the Next button for example, it will open in a new tab in the background. If you hold Shift while clicking Next, it will open the link in a new window. And so on... Thanks to vinipsmaker for suggesting the middle-click feature!

Second change is that bug 1709443 has been ported to the extension. This should make the extension on par with SeaMonkey 2.53.8 (which is currently in beta 1).

Third change is I implemented the three visibility levels for Phoenix-based browsers (e.g. Pale Moon and Basilisk) under the toolbar right-click context menu. Unfortunately "Show Only As Needed" doesn't work for some reason. And you can't find it in View => Toolbars from the menubar, because the menupopup for the toolbar items doesn't exist.

There's also a known bug while I'm testing the update where if you hold Ctrl and Shift and left-click one of the menu items in More => Other Versions, the More button no longer pops up in the next clicks. As a workaround, you can hide the Website Navigation Bar and show it again to fix this.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
vinipsmaker
Newbie
Newbie
Posts: 3
Joined: 2021-06-06, 20:43

Re: 3.3 has been released!

Unread post by vinipsmaker » 2021-06-07, 11:20

It's working here. Thanks for the update.

Another idea: sometimes I want to subscribe to a page's RSS, so I'd like to be able to right-click on the RSS item and click on "copy link". Right now I have to actually open the page just to copy the link from the address bar before I can paste this RSS link on my news aggregator.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 780
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Website Navigation Bar

Unread post by jobbautista9 » 2021-06-07, 13:03

I think I can do that. I just need to add a new context menu containing a Copy Link item...

I got the known bug fixed by using the whereToOpenLink function of utilityOverlay.js (thanks frg of SeaMonkey). Unfortunately the fix only works properly (and inconsistent with the anchor behaviour on webpages) in Phoenix-based browsers. In Borealis and SeaMonkey, shift-leftclick doesn't work because it returns null to the where object. I'm going to ask Tobin first whether he'd make shift-leftclick work in Borealis, before I release the fix. And maybe make the ctrl-leftclick consistent too.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

New Tobin Paradigm

Re: Website Navigation Bar

Unread post by New Tobin Paradigm » 2021-06-07, 19:39

One: I wouldn't give them shit.. They are burning out hard running on gecko/56 and calling US old and insecure and low and behold kairo is back on their failnode channel.

They could have signed with us before this 56 abomination they ran on for three years. Would have been trivial to get them on UXP.

At this point, they can either continue to crash and burn or mutate them selves more which they can't do. They are fucked.

As for whatever you want to port to Borealis... I removed the ancient toolbar for a reason.

User avatar
vinipsmaker
Newbie
Newbie
Posts: 3
Joined: 2021-06-06, 20:43

Re: Website Navigation Bar

Unread post by vinipsmaker » 2021-06-09, 11:37

One last feature request: still on the RSS thing, it'd be good to have a tooltip containing the URL (or change the statusbar, or any other hint for the actual URL... anything that shows me the URL will do) when I hover the mouse over the RSS links so I can take a look at which one I want to copy before copying.

This feedback is not important for most navigation buttons (top, up, first, prev, next, last, document > section, section > chapter, ...), but it does help when you're not sure where you're navigating to (both more > ..., and the RSS > ...).

Locked