Hacker News new | ask | show | jobs
by markx2 12 days ago
Why is this better than using the !g DDG bang after the initial search?
2 comments

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