Closed Bug 255274 Opened 20 years ago Closed 16 years ago

Option to Display Bookmarks Using a Style Sheet

Categories

(SeaMonkey :: Bookmarks & History, enhancement)

SeaMonkey 1.1 Branch
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: david, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040803

A number of Mozilla users have their preferences set to display their bookmarks
file as their home page.  Provide an option to use a style sheet for this display. 

A simple implementation would be merely a preferences checkbox, requiring the
user to name the style sheet bookmarks.css and put it in each profile directory.
 A more elegant implementation would also have a file-selection capability,
allowing the style sheet to have any name and be in any location.   

Reproducible: Always
Steps to Reproduce:
Um... Doesn't a user stylesheet (with the appropriate @-moz-document rules in
current builds) work fine for this?
Some notes on what has already been attempted to obtain what this RFE requests
without implementing anything in Mozilla -- 

I can't apply a <link> for a style sheet to my bookmarks file and make it stick.
 Each time I select a bookmarked link, Mozilla rewrites the file to update the
LAST_VISIT attribute for that link.  This erases the <link> to the style sheet.  

The URIid extension does not work on Web pages loaded from the user's own hard
drive, which is where my bookmarks file resides.  The extension only works for
pages loaded from a Web server.  That's because URIid relies on identifying
pages by their domains.  A local file on my hard drive has no domain, only a
path and a name.  

Server-based solutions (not just the URIid extension) won't work because I am
running a client, not a server.  

I created a style sheet named userContent.css in the chrome subdirectory under
my profile directory (per
<http://www.mozilla.org/unix/customizing.html#usercss>.  It had the single style: 
        H3.bookmark-item {margin-top: 5em; margin-bottom: 0.5em}
This was intended to control the spacing before and after the folder titles, but
it had no effect.  Of course, the cited page appears to be only for UNIX users,
not Windows users.  (How does someone navigate to that page from
<http://www.mozilla.org/>?  I can't find any link to in in the Site Map.  Is
there an equivalent Windows page?)


   
Product: Browser → Seamonkey
This worked for me using W2K 2004120205.  From my userContent.css
@-moz-document
url(file:///D:/Documents%20and%20Settings/$user/Application%20Data/Mozilla/Profiles/default/$salt.slt/bookmarks.html){
	H3{margin-top: 5em; margin-bottom: 0.5em;}
}
This was implemented by bug 238099(see bug 238099 comment 15)
From what I gather you will need a Moz 1.8a3 or higher or a trunk build of
either FF or Moz.

From http://www.mozilla.org/unix/customizing.html
| Nearly all of these techniques are cross-platform. Don't be confused by the url 
| where this document lives in the mozilla.org document tree.
To my knowledge only key bindings don't work.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.12) Gecko/20050915

I still consider this a very useful enhancement.  

In a poll conducted by MozillaZine last year about home pages
<URL:http://www.mozillazine.org/talkback.html?article=5444>, a number of
respondents indicated they use their bookmarks file as their home page. That
usage would be improved by this enhancement.  Note that this is one of the items
listed (number 31) in the "Bookmarks Use Cases" wish-list at
<URL:http://wiki.mozilla.org/Bookmarks_Use_Cases> for redesigning the Bookmark
system.  
have you tried doing what comment 3 suggests?
Assignee: general → p_ch
Component: General → Bookmarks
QA Contact: general → bookmarks
No.  Comment #3 indicates the need to be using a 1.8 build.  Since I only use
nightlies, alphas, and betas for testing (and only rarely even for testing),
after which I immediately remove them and revert to a release candidate or
"operational" build, I'm still on 1.7.12.  
Reassigning as per Bug #32644
Assignee: p_ch → nobody
Comment #8 should have cited bug 326443, not 32644. 
Comment #3 applies to (among others) current SeaMonkey versions (including the current "production" release, 1.1.9), see http://developer.mozilla.org/en/docs/CSS:%40-moz-document

It can be written into your userContent.css, see http://kb.mozillazine.org/UserContent.css

BUT... Bookmarks are being ported to a new backend. Only trunk builds are affected (yet) and the Reporter said in commen #7 that the is not interested in them.

I'm marking this bug WFM on the branch. If you have problems with bookmarks.html on the trunk (where, IIUC, the "real" bookmarks storage is an sqlite database), please file a different bug for Trunk.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Version: Trunk → SeaMonkey 1.1 Branch
You need to log in before you can comment on or make changes to this bug.