RSS Amplifier

chromic · Feb 15, 2026

Random Search Engine in qutebrowser

0
Sign in to vote or save

chimo · chromic.org

I usually post things when I’m done, or reached a decent point, with whatever I’m doing. This time though I’m only halfway there but figure I’d post anyway.

Over time, I’ve been stumbling across different search engines. I take note of them, intend to try them out, but inevitably end up using the same one out of muscle memory.

I thought it might be interesting if I could have my browser choose a random search engine out of a list for every web search I do.

My attempt at implementing this consists of pointing my `qutebrowser`’s default search engine at a local HTML file, which includes JavaScript to randomly pick from a predefined list of search engines.

As of now, I’m unable to have the browser automatically redirect me to the target search engine. Doing `window.location = search_engine;` gives me an error in the lines of “Network unavailable”.

Dynamically inserting a link on the page and calling `.click()` on it has a similar behaviour.

I’m wondering if this is a limitation of the file:// protocol, but I’ve not looked it up yet, and I’ve been out of the Web game for a few years now.

As such, I’ve resorted to generating the link, and I have to click on it to get to the search results. Not the end of the world, but it would be nice if I didn’t have to.

Read the original on chromic.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.