Bookmarks Menu Folders - Add Scroll Bars

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

Blacklab
Board Warrior
Board Warrior
Posts: 1051
Joined: 2012-06-08, 12:14

Bookmarks Menu Folders - Add Scroll Bars

Unread post by Blacklab » 2023-03-27, 12:16

There's an old saying that you wait a long time at a bus stop... and then two buses come along at once! :)

So it was yesterday with finding CSS userstyles that add scroll bars to long Bookmark Menu folders. I'd looked in the past, found several suggested scroll bar userstyles, tried and tweaked them, but without much success... then gave up looking for years! :(

Here is a very neat 'Bookmark Menu folder scroll bar' userstyle that works well with both Basilisk and Pale Moon:

Code: Select all


/* --- 'Scroll Bar on Bookmarks' topic - SUMO Q&A - CSS userstyle by 'cor-el' --- */
/* --- From: https://support.mozilla.org/en-US/questions/1000428 --- */

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#bookmarksMenuPopup scrollbox,
#bookmarks-menu-button scrollbox,
#PlacesChevronPopup scrollbox,
#PlacesToolbarItems scrollbox {overflow-y:auto!important}

#bookmarksMenuPopup autorepeatbutton,
#bookmarks-menu-button autorepeatbutton,
#PlacesChevronPopup autorepeatbutton,
#PlacesToolbarItems autorepeatbutton {display:none!important}

Basilisk with Bookmark Menu folder scroll bars.png
Basilisk on Windows 7 + a long Bookmark Menu folder with an added scroll bar.
(The scroll bar implementation is perhaps even neater on Windows 10! :D)

--------------------

BTW - The eagle-eyed might notice in the screenshot (above) that Basilisk's 'Bookmarks Menu button' is on the far left-hand end of the navigation toolbar... not the expected Bookmark Star button?

A personal preference... achieved by another small CSS userstyle that 'swaps' over the positions of Basilisk's 'combined' Bookmark Menu & Bookmark Star buttons... incidentally, another userstyle kindly provided by a 'cor-el' answer on Mozilla Support (SUMO):

Code: Select all


/* --- 'Swap bookmarks menu with bookmarks star button' topic - SUMO Q&A - CSS userstyle by 'cor-el' --- */
/* --- From: https://support.mozilla.org/en-US/questions/1035500 --- */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#bookmarks-menu-button > dropmarker {-moz-box-ordinal-group: 0 !important;}

--------------------

Off-topic:
PS. The other bus... which actually came along first. Its successful implementation provided the spur to look again for a Pale Moon & Basilisk solution to having scroll bars available for those very long Bookmark Menu folders. :thumbup:

For anyone into having multiple browsers on hand... this is the very neat CSS userstyle to achieve the same 'Bookmark Menu folder scroll bars' with current Firefox, Firefox ESR, and LibreWolf. :D Had not seen this userstyle before (as yet of 'unknown' origin):

Code: Select all


/* --- Scroll bars for long Bookmark Menu folders - latest Firefox/LibreWolf --- */

[placespopup="true"] { --allow-scroll-bar: auto; }

scrollbox[part="scrollbox"] { overflow-y: var(--allow-scroll-bar, inherit) !important; }


User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 914
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Bookmarks Menu Folders - Add Scroll Bars

Unread post by billmcct » 2023-03-27, 15:11

@Blacklab:
At 82 years old I have not had much desire to look for ways to make things easier for myself.
Thanks for this, since I have needed this for many years.
Back when FX was about v1.0 there used to be a website by one of Mozilla's developers that had a ton of CSS customization's for FX and TB but alas that site died many, many, many years ago. My userChrome.css file has grown to 932 lines now.
Thanks for this,
Bill
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

Blacklab
Board Warrior
Board Warrior
Posts: 1051
Joined: 2012-06-08, 12:14

Re: Bookmarks Menu Folders - Add Scroll Bars

Unread post by Blacklab » 2023-03-30, 22:32

BTW - Same 'Add Scroll Bars' userstyle(s) posted above work for adding scroll bars to long folders on the Bookmarks Toolbar too! Happy scrolling all over! :)

(Not a Bookmarks Toolbar user here... so never thought to check. Serendipitous discovery whilst testing another userstyle fix. Perhaps unsurprising as can drag any bookmark folder from the Bookmarks Menu (dropdown) onto the Bookmarks Toolbar... and back again. Duh! )

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2219
Joined: 2012-08-19, 20:32

Re: Bookmarks Menu Folders - Add Scroll Bars

Unread post by back2themoon » 2023-03-31, 07:05

Thank you Blacklab, for this neat and elegant addition - and to userstyle creator cor-el, of course.

Locked