Auto focuses the text cursor on the search box when loading the main gallery listing page on both E-Hentai and ExHentai.
// ==UserScript==
// @name EH autofocus on search box
// @namespace local.autofocus.search
// @version 1.0
// @description Auto focuses the text cursor on the search box when loading the main gallery listing page on both E-Hentai and ExHentai.
// @match https://e-hentai.org/*
// @match https://exhentai.org/*
// @icon https://e-hentai.org/favicon.ico
// @run-at document-idle
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
const box = document.getElementById('f_search');
if (!box) return;
box.focus();
box.select();
})();