From: Lomanic <firstname.lastname@example.org> As I use the [Privacy Redirect extension] to get redirected to my instance, I find it quite practical to just type youtube in the URL bar then Ctrl+Enter (www.youtube.com), to be redirected to my instance homepage where I can just type my search right away. : https://github.com/SimonBrazell/privacy-redirect --- pug/home.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pug/home.pug b/pug/home.pug index fa6814a..56a6fbc 100644 --- a/pug/home.pug +++ b/pug/home.pug @@ -11,7 +11,7 @@ block content p You're in control. Watch things your way. p Go on. What do you want to watch? form(method="get" action="/search").encouraging-search-form - input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off").search.base-border-look + input(type="text" name="q" placeholder="I'd like to watch..." autocomplete="off" autofocus).search.base-border-look p: a(href="/cant-think") ...can't think of anything? .encouraging-message -- 2.30.2
I agree that this would be useful for computers, but some mobile devices, when there is an autofocus field, will also bring up the keyboard automatically, which I find disorientating. Ideally I'd like it to autofocus for computers only, and I'm not sure how I'd do that. Cadence
Resolved in 8486517 using user-agent sniffing. Not perfect, but it should cover the _vast_ majority of cases.