Hi folks!
I'm searching for a user friendly way, an addon or an about:config tweak, to bookmark a site to "unsorted bookmarks". Actually I want to replicate the same behaviour, when clicking once on the star in the url, but only with a keyboard shortcut like Strg+Shift+D.
Any help is appreciated!
A keyboard shortcut to add a site to "unsorted bookmarks"?
-
- Posts: 23
- Joined: April 14th, 2011, 2:07 am
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: A keyboard shortcut to add a site to "unsorted bookmarks
You can simulate clicking the star button with the keyconfig extension.
viewtopic.php?f=48&t=72994
Code: Select all
document.getElementById("star-button").click();
viewtopic.php?f=48&t=72994
-
- Posts: 23
- Joined: April 14th, 2011, 2:07 am
Re: A keyboard shortcut to add a site to "unsorted bookmarks
Superb! Works like a charm. Thank you!
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
Re: A keyboard shortcut to add a site to "unsorted bookmarks
morat wrote:Code: Select all
document.getElementById("star-button").click();
or
Code: Select all
PlacesCommandHook.bookmarkCurrentPage();
or (to toggle)
Code: Select all
if (BookmarkingUI.status === 0) // if not bookmarked
PlacesCommandHook.bookmarkCurrentPage(); // bookmark it
else
PlacesUtils.bookmarks.removeItem(BookmarkingUI._itemIds[0]); // remove
-
- Posts: 23
- Joined: April 14th, 2011, 2:07 am
Re: A keyboard shortcut to add a site to "unsorted bookmarks
Zoolcar9, thanks!