MozillaZine


A keyboard shortcut to add a site to "unsorted bookmarks"?

User Help for Mozilla Firefox
sojusnik
 
Posts: 23
Joined: April 14th, 2011, 2:07 am

Post Posted September 18th, 2013, 11:27 am

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!

morat
 
Posts: 4762
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 18th, 2013, 2:26 pm

You can simulate clicking the star button with the keyconfig extension.

Code: Select all
document.getElementById("star-button").click();

viewtopic.php?f=48&t=72994

sojusnik
 
Posts: 23
Joined: April 14th, 2011, 2:07 am

Post Posted September 19th, 2013, 2:05 am

Superb! Works like a charm. Thank you!

Zoolcar9

User avatar
 
Posts: 2225
Joined: November 9th, 2004, 6:45 pm
Location: Jakarta, Indonesia (UTC+7)

Post Posted September 19th, 2013, 7:13 am

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  
My Firefox information | Add-ons | GitHub

"With great power, comes great desire to show it off."

sojusnik
 
Posts: 23
Joined: April 14th, 2011, 2:07 am

Post Posted September 19th, 2013, 10:15 am

Zoolcar9, thanks!

Return to Firefox Support


Who is online

Users browsing this forum: Bing [Bot] and 7 guests