Create duckduckgo.user.js
This commit is contained in:
20
duckduckgo.user.js
Normal file
20
duckduckgo.user.js
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user