forked from readtedium/udm14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (91 loc) · 6 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests;">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<link rel="home" href="/" />
<link rel="icon" href="favicon.png" type="image/png" />
<link rel="search" type="application/opensearchdescription+xml" title="&udm=14" href="search.xml" />
<title>&udm=14 | the disenshittification Konami code</title>
<meta name="description" content="A quick way to get an AI-free search without any extra work." />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<script src="http://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script>
<script>
tailwind.config = {
module.exports = {
darkMode: 'media',
// ...
}
}
</script>
</head>
<body>
<div class="flex h-screen px-5 py-2 lg:p-0 dark:text-white dark:bg-zinc-800">
<div class="search-box max-w-md lg:max-w-xl m-auto align-middle">
<h1 class="dark:text-white"><a href="#"><img src="udm14logo.svg" alt="&udm=14: the disenshittification Konami code"></a></h1>
<div class="py-6 text-center mx-6 text-sm lg:text-base">
<p>If you want to give people easy access to an AI-free Google search, send them to this page.</p>
</div>
<form class="max-w-xl mx-auto" action="https://www.google.com/search" method="get" onsubmit="searchFormHandler(event)">
<input type="hidden" name="udm" value="14">
<div class="relative">
<div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
<svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
</svg>
</div>
<input type="search" id="default-search" name="q" class="block w-full p-4 ps-10 text-sm lg:text-lg text-gray-900 dark:text-white dark:placeholder-gray-400 border border-gray-300 rounded-full dark:bg-zinc-700 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Whatever you’d like" required onkeydown="handleKeyPress(event)" />
<button type="submit" class="text-white absolute end-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm lg:text-lg px-4 py-2 dark:bg-zinc-800 dark:hover:bg-blue-700 dark:focus:ring-blue-800">AI-Free Search</button>
</div>
</form>
<div class="relative text-sm lg:text-base text-center py-6">
<p><a href="https://tedium.co/2024/05/17/google-web-search-make-default/" class="font-medium text-yellow-600 dark:text-yellow-500 underline hover:no-underline">What is "&udm=14"?</a> • <a href="https://tenbluelinks.org" class="font-medium text-blue-600 dark:text-blue-500 underline hover:no-underline">TenBlueLinks</a> • <a href="http://frogfind.com" class="font-medium text-green-600 dark:text-green-500 underline hover:no-underline">FrogFind</a> • Built by <a href="https://tedium.co/" class="font-medium text-red-600 dark:text-red-500 underline hover:no-underline">Tedium</a>
</p>
<br/>
<button class="inline-flex items-center font-medium rounded-3xl px-4 py-2 leading-5 bg-gray-200 text-primary-100 text-black hover:text-gray-800 hover:bg-gray-300">
<img src="share-openly.svg"/> <a href="https://shareopenly.org/share/?url=https://udm14.com&text=udm14.com%3A%20An%20easy-to-use%20shortcut%20for%20an%20AI-free%20Google%20search.%20%28Try%20it%21%29">ShareOpenly</a>
</button>
<br/>
<p class="pt-6 pb-1">
<strong>Grab the code:</strong> <a class="font-medium text-blue-600 dark:text-white underline hover:no-underline" href="https://glitch.com/edit/#!/udm14">Glitch</a> | <a class="font-medium text-blue-600 dark:text-white underline hover:no-underline" href="https://github.com/readtedium/udm14">Github</a>
</p>
<p class="pb-2">
<strong>Versions</strong> <a class="font-medium text-blue-600 dark:text-white underline hover:no-underline" href="https://udm14.com">Regular</a> | <a class="font-medium text-blue-600 dark:text-white underline hover:no-underline" href="https://udm14.org">SFW</a>
</p>
<br/>
<p class="text-xs lg:text-sm"><em><strong>Note:</strong> The feature this relies on, while available to most people, may not be available on every account yet. If it doesn’t work, try switching to another Google account, using Incognito mode, or clearing your cookies. We make no claims to perfect functionality.</em></p>
</div>
</div>
</div>
<script>
function search() {
const searchTerm = document.getElementById("default-search").value;
const encodedSearchTerm = encodeURIComponent(searchTerm);
const googleUrl = "https://www.google.com/search?q=" + encodedSearchTerm + "&udm=14";
window.location.href = googleUrl;
}
function handleKeyPress(event) {
if (event.keyCode === 13) { // Enter key code
event.preventDefault(); // Prevent default form submission
search();
}
}
function searchFormHandler(event) {
if (!navigator.onLine) {
event.preventDefault();
search();
}
}
document.addEventListener("DOMContentLoaded", event => {
document.getElementById("default-search").focus();
});
</script>
</body>
</html>