Create duckduckgo.user.js

This commit is contained in:
2022-06-24 09:28:11 +02:00
committed by GitHub
parent d2de67e6fd
commit 9876caa45c

20
duckduckgo.user.js Normal file
View 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;
}