Skip to content

Convert firefox bookmark folders to tags and deduplicate in the process

License

Notifications You must be signed in to change notification settings

sbs20/firefox-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firefox-tags

You have previously imported tag based bookmarks / favourites from google or delicious and Firefox has arranged them in folders. Where you had a single bookmark with multiple tags, now you have multiple folders with the same bookmark.

Firefox now supports tags. This program will take a JSON export of your Firefox bookmarks, flatten them into a deduplicated list, and assign the folder names as tags. Take the JSON output and import it back into Firefox.

Be sure to make a back up of your original JSON export so that you can re-import it if everything goes wrong. Remember, it's not my fault.

Details

There are four main folders of links:

  1. Bookmarks Menu: this is where everything from all folders will end up. Whatever you had will be flattened in here and tagged instead of in folders.
  2. Bookmarks Toolber: whatever was in here will end up in Bookmarks folder. However, it will also remain here. This is by design. If you wish to manually clean up you can either
  • Delete all links in "Bookmarks Menu" that has a tag of "Bookmarks Toolbar" or
  • Delete everything in here

I may change this or provide more control if people want it. The reason I haven't yet is that Firefox already provides a UI for moving and deleting bookmarks 3. Unsorted bookmarks: this will be flattened into the Bookmarks Menu and removed 4. Empty: this will be flattened too but left as-is

The MIT License (MIT)

Copyright 2016 Sam Strachan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowledgements

Although lightly refactored, this uses the JSON formatter Copyright (c) 2008 Vladimir Bodurov https://quickjsonformatter.codeplex.com/

About

Convert firefox bookmark folders to tags and deduplicate in the process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages