• mittens [he/him]
    ·
    edit-2
    2 years ago

    I mean I can at least clear up two things regarding his request:

    you can put your javascript code in a minifier to get a one-line implementation. websites that are very concerned with performance often serve the entirety of the client side stuff in a single line.

    and also he's just asking this behavior for the "from" keyword, so the task should be just making the simple search bar detect you typed "from", indicate this by highlighting it or something and removing result previews that match the query "from", which probably maybe isn't super hard stuff to do (i'm not a js dev lol).

    the baffling portion is that there should be plenty of examples that do this thing exactly, third party libraries that do it for you, and also it's shitty UX, most users DON'T wanna use keywords in their search queries.