Style Live Bookmarks To Limit Items ?

User Help for Mozilla Firefox
Locked
Alan Beaman
Posts: 15
Joined: April 21st, 2005, 9:14 am

Style Live Bookmarks To Limit Items ?

Post by Alan Beaman »

Hi!

I'd like to address this to Ben Goodger especially, because he wrote the code -- or anyone who knows the answer.

I saw this question at The Extensions Mirror
http://www.extensionsmirror.nl/index.php?showtopic=3470
and I would like to know how this might be
accomplished also.

"Is there a way of setting a top limit for the number
of items that can be displayed in a live bookmark?"

TIA to whoever can show the way.
Unarmed
Posts: 4941
Joined: July 31st, 2003, 1:26 pm

Post by Unarmed »

To limit the number of Live Bookmarks to four, add this to userChrome.css:

Code: Select all

[livemark="true"] menuitem { display: none !important; }
[livemark="true"] menuitem:first-child,
[livemark="true"] menuitem:first-child + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem
{ display: -moz-box !important; }

and to six:

Code: Select all

[livemark="true"] menuitem { display: none !important; }
[livemark="true"] menuitem:first-child,
[livemark="true"] menuitem:first-child + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem + menuitem + menuitem
{ display: -moz-box !important; }


You get the idea. Messy, but it works until we get <code>:nth-child()</code> support.

// edit: fixed omitted comma
Last edited by Unarmed on September 7th, 2005, 7:58 am, edited 1 time in total.
Alan Beaman
Posts: 15
Joined: April 21st, 2005, 9:14 am

Post by Alan Beaman »

Thanks. I used your code to limit the items to six and it sort of works but I am only getting four items instead of six.

Any idea how come?
Alan Beaman
Posts: 15
Joined: April 21st, 2005, 9:14 am

Post by Alan Beaman »

Okay, I found out why. You omitted a comma at the end of line 5. Without a comma, it doesn't read the next line of code.

I fixed it.

Thanks again very much.
ff2k0
Guest

Re: Style Live Bookmarks To Limit Items ?

Post by ff2k0 »

hmm doing this removes the "Open (feed URL)" item at the very end. Is there any way of limiting rss entries while retaining the "Open (feed URL)" menu entry
Guest
Guest

Re: Style Live Bookmarks To Limit Items ?

Post by Guest »

Replace what you havw with the following:

Code: Select all

[livemark="true"] menuitem:not([label^="Open \""]) { display: none !important; }

[livemark="true"] menuitem:first-child,
[livemark="true"] menuitem:first-child + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem + menuitem,
[livemark="true"] menuitem:first-child + menuitem + menuitem + menuitem + menuitem + menuitem
{ display: -moz-box !important; }
User avatar
LIMPET235
Moderator
Posts: 39961
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Style Live Bookmarks To Limit Items ?

Post by LIMPET235 »

Why reply/post to a thread from Sep. 2005?
If you have a problem, please start a new thread.
Locking this relic.
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
Locked