- Code: Select all
javascript:var e=document.getElementsByTagName('dd');el=e.length; for(var i=el-1;i>=0;i--) e[i].parentNode.removeChild(e[i]); alert(el); void 0;
Ed
bookmarks.html bloated with binary favicon data
34 posts
• Page 2 of 3 • 1, 2, 3
One more bookmarklet that dickvl did up for me to strip the (Properties) Description from all the bookmarks in a bookmarks.html file.
Ed A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
Do I have to use only this bookmaklet or I have to use all the 3 bookmarklet in this thread to clean my bookmark.html?? THANKS! MondoWin ==> Italian site for information about MS Windows tweaking
You need to run both of the scripts that I posted (neither of which are "mine") to completely clean up a bookmarks.html file; the code that dickvl posted on 01/10/2008 is the same as the first one I posted on 4/10/2007.
The main reason that I updated this old thread with that script is that long descriptions for bookmarks was a new feature in Firefox 2.0 (11/06) and not that many websites that I added bookmarks for used long descriptions a year ago. That has become more & more of a 'pain' for me since then and I decided to come up with a fix, with dickvl's help. Ed A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
You're welcome.
Ed A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
Of course you can put the code in one bookmarklet:
A more flexible version that allows to set what to remove in case you want to keep some attributes and the descriptions:
Another bookmarklet to only remove ICON data ( viewtopic.php?p=2417100#2417100 ):
A bookmarklet to decode the dates:
Last edited by dickvl on July 9th, 2011, 2:37 am, edited 12 times in total.
This is spectacular and does what I've wanted to do with my bookmarks file for a while. I've been doing this more manually, which is very tedious. This makes the operation of preparing my bookmarks file for cross-browser deployment (and storage online) far easier.
One more thing would perfect it for me: If it could automatically save the stripped file to a given path. I don't know JS, so I'm not sure how I could do that. Gecko
One Rendering Engine to rule them all. the latest all-in-one bookmarklet cleans a little more than I would want. not only all the excess data, but also bookmarks and some folders from the very first level disappeared. my bookmarks toolbar was empty too, although the folder was there in the menu. i should add that I tried this on the original never cleaned before bookmarks.html, that was created somewhere in the beginning of 2001 with mozilla 0.9x
As noted in the first page of this thread in this post you need to remove certain lines from the javascript to change what is stripped. The latest version shown just above is thorough and radical, better suited to exporting to an online storage or as a portable file to load as a page when travelling. If you understand the instructions in the linked post, you should be able to use the latest version of the javascript and remove the parts to suit your needs. So uh, anyone know the JS to write an html file to a given path? I'd really love to automatically save the results of the stripping. Gecko
One Rendering Engine to rule them all. Folders should not disappear after using the bookmarklet.
It could that there is data in the file that causes Firefox to skip some bookmarks. Do you still have all the bookmarks if you save that file another time in Firefox after you opened it or use "Edit > Select All" and Paste the content in a text editor to save the text to another file? UHMMM... maybe I'm doing something wrong.
![]() Here you can see my original Bookmars. Here you can see my cleaned Bookmarks. As you can see all bookmarks under "Bookmarks Toolbar Folder" - "Firefox & Mozilla Information" - "Quick Searches" - "Naruto" - "P2P" - "Varie" disappeared! ![]() I've used the last bookmarklet posted by dickvl removing this line:
Any ideas?? MondoWin ==> Italian site for information about MS Windows tweaking
If you use the 'Import' item in the Bookmarks Manager then removing the 'personal_toolbar_folder' attribute should not have ill side effects as you already have a Bookmarks Toolbar folder and you can't have two of them and Firefox probably ignore a second BTF if one already exists.
It is probably not a good idea to put such a file in the Firefox profile folder as a replacement for a not working file bookmarks.html. Hello,
I know this is a somewhat old thread, but it matches my problem exactly. Should this bookmarklet also work on a Firefox3 exported bookmarks.html file? I tried it and it seemed to work, but when I looked at the file, there didn't appear to be any changes. This database version of bookmarks that FF3 has adopted is the worst thing they did! I consider it a bug and it makes using the browser more difficult. Is there a way to force it use bookmarks.html instead? If not I think I'll have to go back to FF2. zep places.sqlite is here to stay.... I think ALL storage is being moved to sqlite eventually...
Firefox 3 uses sqlite for Bookmarks/History, Search Engines, Cookies, Permission, Downloads, Form History, Content Preferences, Antiphishing and Malware, and DOM Storage If you want a Browser with the Old Bookmarking, then there is nothing stopping you from Building one. Mozilla won't be doing this. Also Places is currently being enhanced in the nightlies... They are attempting to land improvements... Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -Albert Einstein
Please DO NOT PM me for support... Lets keep it on the board, so we can all learn.
34 posts
Page 2 of 3 • 1, 2, 3
Who is onlineUsers browsing this forum: No registered users and 1 guest |
![]() |