Initial commit
This commit is contained in:
9
htdocs/common/ddg.js
Normal file
9
htdocs/common/ddg.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function duckduckgo() {
|
||||
const form = document.getElementById("ddg-site-search");
|
||||
const input = document.getElementById("ddg-query");
|
||||
|
||||
form.addEventListener("submit", function () {
|
||||
const domain = window.location.hostname;
|
||||
input.value = "site:" + domain + " " + input.value;
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user