News for hackers. Stuff that matters.
Re:I Prefer Semi-Automation by jo1gi on Saturday January 07, 2023 @05:04AM (#34286758)
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.
Re:I Prefer Semi-Automation by bmacho on Saturday January 07, 2023 @05:26AM (#34286861)
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.
Re:I Prefer Semi-Automation by nicbou on Saturday January 07, 2023 @06:14AM (#34287069)
That's exactly it. A Javascript bookmarklet with an assigned keyword ("edit").
Re:I Prefer Semi-Automation by swyx on Saturday January 07, 2023 @09:02AM (#34288016)
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"...
Re:I Prefer Semi-Automation by nicbou on Saturday January 07, 2023 @10:36AM (#34288948)
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.
Re:I Prefer Semi-Automation by tpmx on Saturday January 07, 2023 @08:36AM (#34287836)
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".