jtagcat / localbang

`localbang` provides DuckDuckGo, and user-defined bangs locally in Firefox.
MIT License
1 stars 0 forks source link

Add-on implementation #2

Open jtagcat opened 3 years ago

jtagcat commented 3 years ago

The extensions API doesn't currently support making new (not even talking modifying existing ones) bookmarks with keywords. It's very reachable, though.

It's not really as simple as (first, finding the place,) editing, testing, making a PR, thus I haven't got around to making the contribution. Here lie my open tabs (progress):

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/CreateDetails
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/create
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/bookmarks/search
about:newtab
https://firefox-source-docs.mozilla.org/contributing/index.html
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://searchfox.org/mozilla-central/search?q=Schemas.jsm&path=
https://searchfox.org/mozilla-central/source/toolkit/components/places/Bookmarks.jsm
https://searchfox.org/mozilla-central/diff/5373e7de91fe7b5c11ca7d44720e179ed8cfe407/toolkit/components/places/Bookmarks.jsm#133
https://searchfox.org/mozilla-central/commit/05596be753d0536231fce2c9a2dbcc30674a8347
https://hg.mozilla.org/mozilla-central/rev/296d8da2660933bf0928647f3625de83da5070bb
https://hg.mozilla.org/mozilla-central/annotate/296d8da2660933bf0928647f3625de83da5070bb/toolkit/components/places/Bookmarks.jsm
https://hg.mozilla.org/mozilla-central/rev/0afef21c705d55720deb8ed52e689049016f4850
https://hg.mozilla.org/mozilla-central/rev/a7155a2b38cacbf77e4993c1059e741c6db833a4
https://hg.mozilla.org/mozilla-central/annotate/a7155a2b38cacbf77e4993c1059e741c6db833a4/toolkit/components/places/Bookmarks.jsm
https://searchfox.org/mozilla-central/source/browser/components/places/content/editBookmarkPanel.inc.xhtml
https://phabricator.services.mozilla.com/
https://bugzilla.mozilla.org/show_bug.cgi?id=1276817

This implementation would make localbang more accessible, allow auto-updates, syncing, and easier configuration.