Re:I Prefer Semi-Automation
by alexdowad on Saturday January 07, 2023 @04:59AM
(#34286737)
What browser do you use? How do you create shortcuts which can be accessed by typing in the address bar?
[ Parent
| on HN ]
In firefox you can give a bookmark a keyword that you can then write in the address bar to open it. It can also be used for adding search engines.
That bookmark can be a bookmarklet/javascript as well, so you can run commands typing in the address bar and hitting enter.
Re:I Prefer Semi-Automation
by Noumenon72 on Saturday January 07, 2023 @10:01AM
(#34288557)
I've used both things but never considered combining them. Very clever.
That's exactly it. A Javascript bookmarklet with an assigned keyword ("edit").
care to share it so i can crib off of you? oddly enough i write javascript all the time but never ever really got comfortable writing "bookmarklets"...
This is the code:
javascript:void(window.open(document.querySelector('head%20%3E%20link%5Brel=edit%5D').href,%20%20'_blank'));
It relies on the page having a <link> tag with the URL to the admin panel.You can abuse the Chrome custom Site Search feature to achieve the same. You don't have to use the %s argument substitution thing.
Re:I Prefer Semi-Automation
by Noumenon72 on Saturday January 07, 2023 @09:59AM
(#34288541)
I do this without %s to go to dev, qa, or prod: ad/aq/ap for Airflow, kd/kq/kp for Keycloak.
I also started using custom searches for every new technology. I know I'm going to be googling "kubernetes foo" or "Elasticsearch bar" 1000 times in my life, so I just make a "k8" or "es" search engine right from the start. Also "diff %s" for "difference between".