{"url":"https://userstyles.org/styles/4113/ftp-and-file-beautifier-were-awfull-2","name":"FTP:// and FILE:// - beautifier (\"were awfull\" 2)","description":"Make directory listings from ftp and the local system look nicer.\r\n\r\nThis is just a bug-fix release of user 74's stellar \"style 210 [sic].\"\r\n\r\n\r\nCHANGED ITEMS\r\nIf you open these two styles in a graphical diff program like gvimdiff or tkdiff, you'll see that I changed very little.\r\n\r\nMinor fixes implemented from comments on style 210\r\n\r\nFor file://, I moved the non-table parts into an ftp-only  section and then demanded explicit hierarchy for the table elements, based on the post-rendered hierarchical structure of:\r\n\r\n\u003chtml xmlns=\"http://www.w3.org/1999/xhtml\"\u003e\u003c!-- snip --\u003e\r\n\u003cbody\u003e\r\n\u003ch1\u003e\u003c!-- snip --\u003e\u003c/h1\u003e\r\n\u003chr\u003e\u003ctable\u003e\r\n\u003ctbody\u003e\r\n\u003c!-- entire content lies here --\u003e\r\n\u003c!-- snip --\u003e\r\n\r\nCSS lets us specify an elements by parents, elder siblings, and exact attribute content for each element/parent/sibling.  This lets me use every non-snipped bit above, thus mostly eliminating collisions with Sage (whatever that is) and non-auto-generated local html content.  You can find more on this at http://www.w3.org/TR/REC-CSS2/selector.html\r\n\r\nKNOWN BUGS\r\n\r\nFile:// indexes have larger margins, HR bars at the top and bottom, and the default heading format.  I cannot fix that without affecting all local HTML documents.  user 74's solution was to not render file:// indexes at all.","author":"khopesh","created":"2007-11-12T16:04:43.000Z","created_ago":"over 18 years","updated":"2007-11-12T16:04:43.000Z","updated_ago":"over 18 years","category":"global","subcategory":null,"weekly_installs":0,"total_installs":4303,"rating":"none","isPremium":false,"screenshot":"https://userstyles.org/style_screenshot_thumbnails/4113_after.png?r=1779678021","license":null}