MozillaZine

Style Live Bookmarks To Limit Items ?

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

Post Posted September 6th, 2005, 8:34 pm

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 Posted September 6th, 2005, 9:05 pm

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 Posted September 7th, 2005, 7:39 am

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 Posted September 7th, 2005, 7:51 am

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
 

Post Posted June 21st, 2009, 7:35 am

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
 

Post Posted June 21st, 2009, 8:17 am

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; }

LIMPET235
Moderator

User avatar
 
Posts: 38393
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted June 21st, 2009, 8:21 am

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-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-57.0-61.0-62.0/T-bird-2.0.0.24/SnagIt-v10.0.1/MWP-7.11.0.
RadioYachting. (Always choose the "Custom" Install.)

Return to Firefox Support


Who is online

Users browsing this forum: Infernoflower1 and 8 guests