diff --git a/duckduckgo.user.js b/duckduckgo.user.js new file mode 100644 index 0000000..3900acb --- /dev/null +++ b/duckduckgo.user.js @@ -0,0 +1,20 @@ +// ==UserScript== +// @name DuckDuckGo Tab Title +// @namespace http://tampermonkey.net/ +// @version 1 +// @description Sets the title of the tab when using the POST method for searching +// @author luxick +// @match https://duckduckgo.com/* +// @icon https://www.google.com/s2/favicons?sz=64&domain=duckduckgo.com +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + setTimeout(updateTitle, 1000); + // Your code here... +})(); + +function updateTitle(){ + document.title = document.getElementById("search_form_input").value; +}