-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresults.html
More file actions
36 lines (35 loc) · 1.02 KB
/
results.html
File metadata and controls
36 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Redirecting…</title>
</head>
<body>
<script>
(function(){
const params = new URLSearchParams(location.search);
const q = params.get('q') || '';
const b = params.get('b') || '';
const base = 'https://noai.duckduckgo.com/';
const target = q
? base + '?q=' + encodeURIComponent(q) + (b ? '&b=' + encodeURIComponent(b) : '')
: base;
location.replace(target);
})();
</script>
<noscript>
<p>Redirecting... <a id="redir" href="https://noai.duckduckgo.com/">Continue</a></p>
<script>
(function(){
const params = new URLSearchParams(location.search);
const q = params.get('q') || '';
const b = params.get('b') || '';
document.getElementById('redir').href = q
? 'https://noai.duckduckgo.com/?q=' + encodeURIComponent(q) + (b ? '&b=' + encodeURIComponent(b) : '')
: 'https://noai.duckduckgo.com/';
})();
</script>
</noscript>
</body>
</html>