3 ms·
I Think you can put this into single local HTML file and instead of polluting your bookmarks with thousands items make just single keyword bookmark pointing to
by myfonj 5y ago
I Think you can put this into single local HTML file and instead of polluting your bookmarks with thousands items make just single keyword bookmark pointing to the HTML and let it handle all the functionality in embedded JavaScript.
The only difference would be one extra space needed for invocation, i.e. instead of `!github test` you'd need to type `! github test`.
I tried this about ten years ago and it seemed to work.
From https://gist.github.com/myfonj/36a2a72a8ac6b6172ee32aae271e7ca3 https://gist.github.com/myfonj/36a2a72a8ac6b6172ee32aae271e7... :
/*
howto:
# place this file somewhere on your disk
# open it in Firefox
# bookmark it, so it's address is like
# file:///c:/web-root/utils/firefox-shell.html
# edit new bookmark: append '?%s' to its URL, so it becomes
# file:///c:/web-root/utils/firefox-shell.html?%s
# set some handy Keyword, eg. '>', '#' or '!' for it
# try it. you should see a list of defined 'bookmarks' (testing only)
# extend, tweak.
# remember that you must use space after the main Keyword: "> command argument1 argument2"
*/
- MildlySerious 5y agoIt is worth noting that the spaced syntax (`! github test`) has its own separate meaning with DDG: Go straight to the first result.
- myfonj 5y agoTrue. My all times favourite is to use it in keyword bookmark for `site:<domain>` so you can go straight to "most relevant page from <domain>" with e.g. `mdn <word>`: https://duckduckgo.com/?q=!%20site:developer.mozilla.org%20%s
- MildlySerious 5y agoClever! Thank you for sharing. MDN is specifically the site I most often use this feature for as well. This might be a better substitute, as I have ended up on MSDN a few times in the past when just straight up searching "! mdn <query>".