Giter Site home page Giter Site logo

eric-bixby / auto-sort-bookmarks-webext Goto Github PK

View Code? Open in Web Editor NEW
111.0 111.0 21.0 767 KB

Firefox add-on to sort bookmarks by multiple criteria

License: GNU General Public License v3.0

JavaScript 89.32% HTML 4.37% Shell 1.02% Python 3.29% SCSS 1.18% Dockerfile 0.82%

auto-sort-bookmarks-webext's Introduction

๐ŸŒฑ I'm currently learning about chatGPT and copiolot for software development

auto-sort-bookmarks-webext's People

Contributors

antoyo avatar darknami avatar dependabot[bot] avatar eric-bixby avatar gitoffthelawn avatar mi-g avatar sopor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-sort-bookmarks-webext's Issues

jpm: icon issue

Just FYI, when building addons with jpm, you need to open the compiled addon and remove the icon entry from install.rdf before uploading to amo because firefox still doesn't display it correctly. It looks like mozilla doesn't give a flying fuck about fixing this, as usual: https://bugzilla.mozilla.org/show_bug.cgi?id=1141839.

Thanks for updating to jpm though, progress is good

Problem with addon in FF40

With the latest update to FF40, the Sort Folders>Configure button opens up a page that does now show the names of the folders, just check boxes on the tab that opens at : resource://sortbookmarks-at-bouanto/autosortbookmarks/data/config

Black Icon Not Seen on Black Background

I had changed the icon color from gray/grey to black, which is fine for a light colored background, but not good for a dark colored background. I'd like the icon to change like the Firefox toolbar icons which automatically adjust from black to white based on the background color. I couldn't find the documentation for this feature. If anyone knows, please let me know.

In the meantime, I was thinking of doing a circular or rectangular filled area of red, white, or blue.

Toolbar button no longer works

With Auto Sort Bookmarks 2.10.4 on Firefox 45.0.1, the Auto Sort Bookmarks toolbar button no longer works. Pressing the button does not result in any action being taken.

Feature request: Sort by Domain (not url)

I would like to request a Sort by Domain feature, that way i could for example make it sort YouTube videos by Last Modified, since they don't have meaningful URLs.

Feature request: Sort by "frecency"

Firefox has this excellent ranking system called "frecency" (portmanteau of frequency and recency), which it uses to rank suggestions when you type in the address bar. I think this would be a great way to order bookmarks as well! The algorithm is all there and the ranking is continuously updated in the moz_places table.

Some information on the frecency algorithm used here.

'Delay Before Auto-Sort' not Working Correctly

Auto-sort was trying to sort bookmarks/folders while I was editing them, so I thought, "I'll just increase the delay time to allow me plenty of time." So I increased both the bookmark delay before sort and folder delay before sort settings to 55 seconds. To my surprise, the extension still begins to sort after around 3-5 seconds.

Is this a bug? Or is the delay specified in milliseconds? (It says seconds in the description, though.) Or am I the only one with this issue? I'm currently using Firefox version 49.0.2 and Auto-sort Bookmarks version 2.1.0.9 on Windows 7 Pro.

Chrome support

Is it possible to port this extension to Opera and Google Chrome?
Though API restriction can be an issue.

Don't auto-sort on startup

When automatic sorting is enabled, don't bother sorting when the browser starts up. This causes the browser to take longer to start.

Sorting does not work at all

After click at "Bookmarks"->"Sort Bookmarks" nothing happens. The hot key does not work. Auto-sorting does not work too. Auto-sort-bookmarks 2.5, Firefox 33.0.
The error from the browser console:
TypeError: bookmark1[BookmarkSorter.prototype.firstSortCriteria] is null
Stack trace:
BookmarkSorter<.compare@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/bookmark-sorter.js:54:13
BookmarkSorter<.sortFolder@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/bookmark-sorter.js:158:13
BookmarkSorter<.sortAndSave@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/bookmark-sorter.js:138:13
BookmarkSorter<.sortFolders/this.thread<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/bookmark-sorter.js:195:25
Thread<.execute@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/thread.js:35:44
Thread<.execute/<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://sortbookmarks-at-bouanto/autosortbookmarks/lib/thread.js:37:17
notify@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/timers.js:40:9
exports.Utils.yield@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/utils.js:380:12
INIParser.prototype.process@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/filterStorage.js:870:7
exports.IO.readFromFile/onProgress@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/io.js:97:15
exports.IO.readFromFile/<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///home/victor/.mozilla/firefox/acrwa2cn.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/io.js:185:13
TaskImpl_run@resource://gre/modules/Task.jsm:330:41
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:866:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:745:7

Indefinite CPU saturation after about a day's usage

Auto-Sort Bookmarks now constantly eats CPU, gradually increasing the amount used until it reaches 100% after about a day's usage without restarting Firefox. This occurs in Firefox 42 (and probably earlier) with v2.8 and above, but not v2.7. I came to the conclusion that ASB is at fault because as soon as I disable it, CPU usage returns to normal. I imagine it's only a matter of time now before Mozilla breaks v2.7, so, hoping for a swift resolution here.

Please add Pale Moon compatibility via PMkit

Hi there, @antoyo. First off, thanks for your wonderful and powerful add-on. It has relieved many headaches of rearranging and renaming bookmarks. This is definitely an accessibility feature, I hope it can be restored for us Pale Moon users.

In fact, it's been pretty useful at what it does, I had to modify the xpi (adding our own GUID and a lower minimal install/version number) so I could install the latest and compatible version available. Although, that isn't the case anymore since v27.1 of Pale Moon. PMkit, is an alternative library that provides a basic compatibility layer with the Mozilla's Add-on SDK. Many add-ons have already been successfully adapted and work fine in Pale Moon. Thus, it's progressing greatly as another option for our add-on developers.

Additionally, if you could fully and officially support us please, that would be awesome. You can do this by adding our GUID/application block to the install.rdf, fixing any bugs that pertain to us, and hosting it on APMO or AMO. But, that is only one of the options to support us. We offer several other alternatives.

Not to mention, Pale Moon uses it's own layout and rendering engine called Goanna. This was put in place because "Pale Moon is not Firefox, and never will be again." Hence, the UI differences and the in-progress/future Road Map.

-PS: I'm not an add-on developer or in charge of this process, just a Pale Moon enthusiast. You would need to get in contact with Andrew Gilbertson (AndyTheAbsurd) or Lootyhoof (Ryan659), at our forums.

Not sorting subfolders

Since Firefox 30 update Auto-Sort-Bookmarks will not sort subfolders. It will sort the folders in the Bookmark Menu, but no longer will sort those folders' subfolders. Do you have any advice?

Firefox 31.0
Macbook Pro
OS X 10.9.4

Browser crash on startup

Just today my Firefox is crashing on startup every time. After loading in Safe Mode and enabling addons one-by-one, I have found Auto-Sort to be the culprit. When enabled, Firefox crashes on startup; disabled, all is normal. In fact, just clicking Enable causes Firefox to crash instantly! I have not had issues in the past and have had auto-sort enabled.

Many thanks for this great add-on, I'll be glad to provide any assistance diagnosing this that I can (crash logs, etc.). I was looking through recent commits to master and the only changes I see are for localization - is it just me or does that sound like an unlikely culprit?

Enhancement: Numeric sorting

This extension is very nice so far. However, I have a lot of bookmarks with URLs which contain numbers that I want sorted in order. Right now, /2/ is getting sorted after /10/.

Only sort bookmarks in selected folders

..Is one of the most important features to me. I've got thousands of bookmarks but I'm not interested in sorting all of them. I only want to sort bookmarks of forum threads where I'm active in (by visiting date), thats all.. So please add an option to select only single folders. My firefox is loading as hell otherwise.. And there seems no alternative on the addon market..

Manual Sorting when Order by Last Modified

Some times I just want a folder/bookmark in a certain order, so I drag it in place, but the add-on reorders it (I order by Last Modified inverse).

This could maybe fixed if dragging/dropping a folder/bookmark changed the Last Modified property

Nothing gets sorted

FF 40.0.2, I just noticed the auto-sort no longer works.
I have auto sorting disabled and instead use the toolbar button to run this plug-in. When I do, nothing happens - the bookmark folders inside Bookmark menu (it's checked in "sort folders" list) don't get sorted. Nothing in the browser console.

Firefox hanging

Firefox (45.2.0) hanging just about few minuts of use. Turn it off and Firefox back to work.

"Sort Bookmarks Toolbar" option not retained

Hello, my Bookmarks Toobar got auto-sorted although I have that option disabled. Found out that if the extension is disabled and re-enabled, that option is automatically re-enabled. Using Pale Moon 25.0.2 x64.

Unpleasant entry in bookmarks menu (icon alignment and menuitem position)

Context: Auto-Sort Bookmarks 2.4 - Firefox 33.0
Previously discovered with Auto-Sort Bookmarks 2.3 - Firefox 31.0

Icon of 'sort_bookmarks' menuitem is not well aligned and the menuitem itself is not at a very useful position. See "Trier les marque-pages" in image (french install of Firefox):
1 menu

My own fixes are here:
http://abenoist.perso.sfr.fr/tmp/ASB2.4/main.js
If you prefer the diffs:
http://abenoist.perso.sfr.fr/tmp/ASB2.4/main_2.4_diffs.html

Result is:
menu_after

To note that I am not an add-on developer. These fixes were developed by observation with DOM inspector.

As you have probably guessed, English is not my mother tongue. Sorry.

[Bug] Folders listed twice during first run

Excellent extension! Amazing! Thank you!

The first time I installed it, the top level folders within the Bookmarks Menu section were duplicated in the Folders to Sort configuration screen.

When I clicked the + to expand the Bookmarks Menu items, it did not respond immediately, so I pressed the + several times. I'm not sure if that had anything to do with causing the issue.

The workaround was simply to close the configuration tab and reopen it. After that, everything worked amazingly well.

Version tested: 2.9 on Firefox 40.0.2

Auto-Sort no longer working

I don't know what has changed, but Auto-Sort Bookmarks no longer automatically sorts. I'll drop a new bookmark in and it just sits there.

v2.8

Antoyo.

You are the man: v2.8 is a milestone, a real burner

Sorting Bookmarks per Date and Folders by Name: that is now a reality, finally!

10 stars plugin

I can't thank you enough.

sorting folders by name + bookmarks by date

First and foremost thank you Antoyo for this wonderful add-on.

Would be amazing if you could add the feature that different bookmark types (folders, bookmarks, smart...) can be sorted differently.

ex. Folders (at the top) sorted by name - Bookmarks sorted by date.

Please let me know

Considering CJK Characters as Exception

See this case
20161030_095531
As you see, the third one is only Chinese characters but listed among Latin character.
As how I expect, it should be sorting independently: all bookmarks with only Chinese characters at the bottom/top and sorted as another list.

sorting clashes with syncing and corrupts bookmark file

You must allow user control for a single sort action, and must not sort automatically when a bookmark is added or deleted, and especially at startup. My bookmark file corrupted and it was traced to this add-on.
I was using FF v48

Very Annoying Pop-Up

Every time I open Firefox (v41.0.1), I get the start page and a second window with the following. Checking "Do not show again" has no effect. VERY ANNOYING!!

Auto-Sort Bookmarks

I am looking for someone to maintain Auto-Sort Bookmarks.

If you are a JavaScript developer and want to contribute to this extension so that it stays compatible with Firefox, please open an issue on Github.
Do not show again

Reduce Blocking/Freezing when Sorting a lot of Bookmarks

@digitalcircuit wrote:

Testing via the "Load Temporary Addon" option in about:debugging#addons, the new version does successfully complete sorting. All of Firefox freezes for 5-15 second-long intervals, making any interaction almost impossible until the sorting finishes (takes about 1 minute), but it does complete and does not trigger the "unresponsive script" warning.

Certainly improves the situation, but still more impactful on the UI than 2.10.5.

After trying again, the hangs only appear to happen when there's a lot of bookmarks to sort. When there's nothing to sort, or only 1 or 2 bookmarks, it's fairly quick. Firefox hangs in a similar way (edit: without affecting the entire UI, just bookmark management) when adding/removing bookmarks, so I'm not sure this is the fault of the addon.

2.10.7 seems to be a definite improvement over 2.10.6 in either case.

Add back delay before sorting folders

I use your bookmark sorting in conjunction with Xmarks to provide most recent clippings to my students, but now after adding it to new computer with v38 of Firefox, can't seem to get the sorting to do it in reverse order. I don't see any way of changing any options except for whether or not to autosort. I want reverse sort by date created.

Multiple bookmarks receive the same `position` index

Took me a long time to figure this one out, but apparently this add-on doesn't correctly modify all necessary position indexes when sorting. Over time, you end up with multiple bookmarks sharing the same position, so although the sorting appears correct on the source device, when you use sync, your bookmarks end up completely jumbled on your other devices.

Feature Request: Add Whitelist and/or allow Manual Override

Just one of my example s is I have 3 folders I like to see in this order "Daily, Weekly, Monthly". The problem is autosort changes it to "Daily, Monthly, Weekly".

I would like to either manually move Weekly up and have autosort remember that and not change it on subsequent sorts. This would also mean that you would have to have a way to turn it back off on a case by case basis.

Another option would be to have a Whitelist (aka: ignore) feature where I could add those 3 folders and Autosort would leave them alone.

Another solution (or additional feature) is to allow me to use REGEX (and/or simple text) to whitelist bookmarks. I could either then specify to white list those folders individually or I could put an Underscore "_" character before each one and whitelist it with a REGEX expression.

Option to ignore Bookmark Toolbar (or exclude any folder)

There was an option in the pre-v57 Firefox add-on to ignore the Bookmark Toolbar, which I always had enabled. I just installed your latest for v57 (THANK YOU!) but noticed in the options that there wasn't a setting for this. Is that coming in a future release?

Maintain auto-sort-bookmarks

Hello... I'm a Senior Software Engineer in Austin Texas with over 25 years of experience. I have been wanting to develop a Firefox Extension for some time now. I use and quite like auto-sort-bookmarks, and I think taking on your existing extension would be a great way to start. I'm primarily a C++/Qt/OOP/Embedded Systems Guy, but I also do a fair amount of JavaScript, among other things.

Please get back to me via email if you think this might work for you. *** I get a lot of email, so please make the subject line one that I will readily notice. :-)

Thanks,
Lance B.
Austin, Texas

Unconfirmed possible bookmark corruption - Unconfirmed

I put "Unconfirmed" in the title twice (and "possible" once!) because I don't want anyone to get unnecessarily concerned. There is a very reasonable chance there is no problem at all with this extension.

I experienced some minor bookmark corruption. I lost only 1 bookmark. I do not know if it is a bug in Firefox or this extension.

I've experienced some issues with Firefox lately regarding bookmark corruption for bookmarks with keywords. I have not lost any bookmarks that do not have keywords (to my knowledge).

I wish I could give you the steps to reproduce the issue, but I am too pressed for time to run through all the different possibilities in order to properly diagnose the issue. What I do have time to do is to share with you my experience: I went to the Bookmarks Library, and noticed that one of the bookmarks had no favicon at all (not even a blank placeholder one). Even though I could select its row in the Bookmarks Library, none of the fields in the bottom of the Bookmarks Library window would update as they should. It was clear that something was corrupt. I then remembered that the damaged bookmark had a keyword that I recently assigned to another bookmark. Somewhere in that process, I believe I ran a manual sort using Auto-Sort Bookmarks.

Realizing that corruption was present, I performed an export filed by an import. I only lost that one bookmark, from what I could tell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.