Skip to content

Comment on Use more DuckDuckGo with a convenient escape to Google in Firefox

Comments

Why is this better than using the !g DDG bang after the initial search?

it's not, at all

this is the entirety of what this extension does, from its code:

    // Extract the search query from the DuckDuckGo URL
    const url = new URL(tab.url);
    const searchQuery = url.searchParams.get('q');
    
    if (searchQuery) {
      // Create the Google search URL
      const googleUrl = `https://www.google.com/search?q=${encodeURIComponent(searchQuery)}`;
which is identical to what appending !g to a DDG query does

Its just convenience. Its a couple of keystrokes vs a mouse click while you are scrolling

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.