Advertisement
Guest User

New User Script > paste from keyboard > save

a guest
Jul 30th, 2015
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // ==UserScript==
  2. // @run-at document-start
  3. // @name Bing to Duck
  4. // @namespace jethack
  5. // @description This practically stolen userscript redirects Bing searches to DuckDuckGo.
  6. // @include http://*.bing.com/search?*
  7. // @include https://*.bing.com/search?*
  8. // @version 1
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. var newurl = "https://duckduckgo.com/?"+document.URL.match(/q\=[^&]*/);
  13. if (newurl != document.URL) location.replace(newurl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement