DuckDuckGo Append Anti-AI Search

Automatically appends predefined phrases to the DuckDuckGo search box

  1. // ==UserScript==
  2. // @name DuckDuckGo Append Anti-AI Search
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.12
  5. // @description Automatically appends predefined phrases to the DuckDuckGo search box
  6. // @author Beauvoir Ferril
  7. // @match https://duckduckgo.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const phrases = [
  16. '-"ai"', '-"artificial intelligence"', '-"stable diffusion"', '-"nightcafe"', '-"chatgpt"', '-"gpt"', '-"adobe firefly"', '-"midjourney"', '-"dall-e"', '-"canva"', '-"jumpstory"', '-"runwayml"', '-"openai"', '-"gettyimages"', '-"limewire"', '-"playgroundai"', '-"craiyon"', '-"freepik"','-"dreamstime"','-"civitai"', '-"deepai"', '-"hotpot"', '-"deepmind"', '-"pixlr"'
  17. ];
  18.  
  19. const searchInput = document.querySelector('input[name="q"]');
  20.  
  21. if (searchInput) {
  22. // Get current value in the search box
  23. const currentValue = searchInput.value;
  24.  
  25. searchInput.value = currentValue ? `${currentValue}, ${phrases.join(', ')}` : phrases.join(', ');
  26. }
  27. })();