A userscript that adds a convenient Google search button to DuckDuckGo search results, allowing you to quickly search the same query on Google with one click.
Click to install:
- DuckDuckGo to Google Button - Adds a Google button to DuckDuckGo search
- Google Root - Adds custom styling to Google search elements
Requires a userscript manager like Tampermonkey to be installed first.
- Adds a "Google" button next to the DuckDuckGo search button
- Opens Google search results in a new tab
- Automatically matches DuckDuckGo's button styling
- Works with all DuckDuckGo search variations
-
Install a userscript manager for your browser:
- Tampermonkey (Chrome, Firefox, Safari, Edge, Opera)
- Violentmonkey (Chrome, Firefox, Edge)
- Greasemonkey (Firefox)
-
Click the install link below:
-
Your userscript manager will prompt you to install the script. Click "Install" or "Confirm"
-
The script will automatically update when new versions are released
-
Install a userscript manager (see step 1 above)
-
Open your userscript manager dashboard
-
Create a new script
-
Copy the contents of
duckduckgo-google-button.user.jsand paste it into the editor -
Save the script
-
Go to DuckDuckGo and perform a search
-
You'll see a "Google" button next to the search button
-
Click the "Google" button to open the same search query in Google (opens in a new tab)
A companion userscript that adds custom styling to Google search elements for enhanced visual customization.
- Recursively finds and styles Google search box container elements
- Applies custom effects without relying on class or ID selectors
- Automatically handles dynamic content updates
- Works with Google's autocomplete dropdown
-
Make sure you have a userscript manager installed (see above)
-
Click the install link below:
-
Your userscript manager will prompt you to install the script. Click "Install" or "Confirm"
-
The script will automatically update when new versions are released
-
Install a userscript manager (see DuckDuckGo to Google Button installation above)
-
Open your userscript manager dashboard
-
Create a new script
-
Copy the contents of
google-root.user.jsand paste it into the editor -
Save the script
-
The script runs automatically on Google search pages
-
Custom styling is applied to the search box and related elements
-
No user interaction required - it works in the background
- Works on all major browsers with a userscript manager installed
- Tested on:
- Chrome + Tampermonkey
- Firefox + Tampermonkey/Greasemonkey
- Edge + Tampermonkey
MIT License - see LICENSE file for details
Issues and pull requests are welcome! Please feel free to contribute.
If you encounter any issues, please open an issue on GitHub.
This project uses TypeScript for development. The built userscript files are in the dist/ directory.
- Clone the repository
- Install dependencies:
npm install
Run the build command to compile TypeScript to JavaScript:
npm run buildThe build process:
- Compiles TypeScript source files to JavaScript using
tsc
The compiled files will be output to the dist/ directory:
dist/duckduckgo-google-button/duckduckgo-google-button.user.jsdist/google-root/google-root.user.js
.
├── src/ # TypeScript source files
│ ├── duckduckgo-google-button/
│ │ └── duckduckgo-google-button.user.ts
│ └── google-root/
│ └── google-root.user.ts
├── dist/ # Compiled userscript files
│ ├── duckduckgo-google-button/
│ │ └── duckduckgo-google-button.user.js
│ └── google-root/
│ └── google-root.user.js
├── package.json
├── tsconfig.json
└── README.md