-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
273 lines (228 loc) Β· 18.4 KB
/
search.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<script>
var ID = "oogleResults";
</script>
<link rel="search" type="application/opensearchdescription+xml" href="https://ooogle.github.io/beta/stuff/search.xml" title="Oogle">
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script>
<script src='https://vincens2005.github.io/theduckduckgothing.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!doctype html>
<head><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-3362264853061823",
enable_page_level_ads: true
});
</script></head>
<body onload="checkCookie(); getanswer(document.getElementById('gsc-i-id1').value)" onmouseover='getanswer(document.getElementById("gsc-i-id1").value)'>
<script>
var b;
function getanswer(q){
if(q == "oogle" || q=="Oogle"){
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>Oogle</h1><img src='https://github.com/tebahpla/tebahpla.github.io/blob/master/ooglelogo.png.png?raw=true' class='imagey' width='175'><br><p>Oogle is an Internet search engine dovoted to ripping off Google in the most fun way. It was started in 2017 by Cukmekerb, a coder who codes somewhere. In their opinion Oogle is the best search engine. Oogle gets you good results (in Cukmekerb's opinion), fast. Oogle doesn't track you (most of the time) Google, on the other hand tracks you from Oogle because Google helps serve Oogle search reults. Oogle search reults are different from Google's, however because they are biased and edited by Cukmekerb so that they are just how they want them. Cukmekerb has a big list of everything searched on Oogle and how much it was searched but that is (about) how much they will track you. They also see what device you used Oogle from and where you came from before being on Oogle.</p>";
}
else if(q == "google" || q=="Google"){
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>Google</h1><img src='https://duckduckgo.com/i/0227507d.png' class='imagey' width='175'><br><p>Google LLC is an American multinational technology company that specializes in Internet-related services and products, which include online advertising technologies, search engine, cloud computing, software, and hardware. Google was founded in 1998 by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University, California. Together, they own about 14 percent of its shares and control 56 percent of the stockholder voting power through supervoting stock. They incorporated Google as a privately held company on September 4, 1998. An initial public offering took place on August 19, 2004, and Google moved to its new headquarters in Mountain View, California, nicknamed the Googleplex. In August 2015, Google announced plans to reorganize its various interests as a conglomerate called Alphabet Inc. Google, Alphabet's leading subsidiary, will continue to be the umbrella company for Alphabet's Internet interests. <b>Oogle is better than Google.</b></p>";
}
else if(q == "stupid search" || q=="Stupid Search" || q == "Stupidsearch" || q =="StupidSearch" || q== "stupidsearch"){
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>StupidSearch</h1><img src='https://stupidsearch.github.io/Imnotdumb/imageFiles/Icon.png' class='imagey' width='175'><br><p>StupidSearch is an Internet search engine that is cool. Its biggest feature (besides search) is its app platform which is pretty awesome. It was started in 2018 by someone. Though its results are served by Google, they are better (as are Oogle's) because they are biased and customised. <b>StupidSearch is better than Google.</b></p>";
}
else if(q == "Bokhead Pictures" || q=="bokhead pictures" || q == "bokheadpictures" || q =="blockhead pictures" || q== "Blockhead Pictures"){
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>Bokhead Pictures</h1><img src='https://github.com/bokheadpictures/bokheadpictures.github.io/blob/master/Bokeadpictures.jpg?raw=true' class='imagey' width='175'><br><p>Bokhead Pictures is an independent film company based somewhere. They were founded in 2014 by Vincent Singer-Henriquez. Their first published short film, Robbie was published to YouTube in 2015. They are currently writing and develoing a new film, which they have not anounced any details about.</p>";
}
else if(q == "donald trump" || q=="trump" || q == "Donald Trump" || q =="Trump" || q== "donald j trump" || q=="Donald J Trump" || q=="stupid" ||q=="dumb" || q=="Stupid"|| q=="Dumb" ||q=="idiot"||q=="Idiot"){
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>Donald Trump</h1><img src='https://duckduckgo.com/i/db9fefe0.jpg' class='imagey' width='175'><br><p>Donald John Trump is an idiot and the 45th and current President of the United States, in office since January 20, 2017. Before entering politics, he was a businessman and television personality.</p>";
}
else{
if(q == "poop" || q== "Poop" || q=="poo" || q=="Poo"){
q = "feces"
}
$.get("https://api.duckduckgo.com/?q="+q+"&format=json", function(a) {
b = JSON.parse(a);
if(b.Abstract=="") {
$( "#answer" ).addClass( "hiding");
document.getElementById('answer').innerHTML='<p>no results found</p>'
}
else if(b.Image=="") {
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>"+b.Heading+"</h1><br><p>"+b.Abstract+"</p>";
}
else{
$( "#answer" ).removeClass( "hiding");document.getElementById("answer").innerHTML="<h1>"+b.Heading+"</h1><img src='"+b.Image+"' class='imagey' width='175'><br><p>"+b.Abstract+"</p>";
}
});
}
};
</script>
<meta name=viewport content="width=device-width, initial-scale=1">
<link rel="manifest" href="manifest.json">
<link rel="shortcut icon" href="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/C--fakepath-favicon.png">
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en-CA" id='html'><head><section id="image"><a href="newerhome"><meta content="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/bounceoogle.png?raw=true" itemprop="image" draggable="true">
<img src="https://github.com/tebahpla/tebahpla.github.io/blob/master/ooglelogo.png.png?raw=true" class="floatin_oogle" draggable="true">
</a></section><np id="greeting" ondblclick="setGreet()" draggable="true" onclick='responsiveVoice.speak(document.getElementById("greeting").innerHTML)'></np><br><script src="https://apis.google.com/js/platform.js" async defer></script><script src='https://code.responsivevoice.org/responsivevoice.js'></script>
<style>
.speech { width: 40px; border: none; cursor: pointer;}
#transcript{ display: none}
#speaknow { text-align: center; cursor: progress;}
</style>
<meta name="google-signin-client_id" content="273615037515-ebr6473ifcvjvs306tt9hq4ekt1d0q9l.apps.googleusercontent.com"><script>
(function() {
var cx = '006871109958894476408:m3adoijc7za';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<link rel='stylesheet' href='https://tebahpla.github.io/speech-recognition/speachreck.css'>
<script>
function submitit() { setTimeout(function(){ document.getElementById("myForm").submit(); }, 1000); }
function startDictation() {
if (window.hasOwnProperty('webkitSpeechRecognition')) {
var recognition = new webkitSpeechRecognition();
recognition.continuous = false;
recognition.interimResults = false;
recognition.lang = "en-US";
recognition.start();
document.getElementById('speaknow').innerHTML='Speak now...';
recognition.onresult = function(e) {
document.getElementById('transcript').value
= e.results[0][0].transcript;
document.getElementById('speaknow').innerHTML = e.results[0][0].transcript;
recognition.stop();
submitit();
};
recognition.onerror = function(e) {
responsiveVoice.speak('there has been a speech recognition error. if you are using internet explorer, or microsoft edge, then use chrome. if you are using chrome then refresh the page');
}
}
}
</script>
<script>
if(window.location == 'https://tebahpla.github.io/oogle?q=flip+a+coin'){
document.getElementById('coinflip').innerHTML="<iframe src='https://tebahpla.github.io/coinflip.html' height='350' width='99%'></iframe>";
};
if(window.location.includes('askew')){
window.location='https://tebahpla.github.io/tests/askew#gsc.tab=0&gsc.q=askew&gsc.sort='
}
</script>
<script>
var n = Date().includes("Feb 14");
var m = Date().includes("Wed Jul 05");
var o = Date().includes("Fri Jun 02");
var baktoskool = Date().includes("Sep 07");
var peaceday = Date().includes("Sep 22");
var rabies = Date().includes("Sep 28");
var halloween =Date().includes("Oct 31");
var genocide =Date().includes("Oct 09");
var nathaniel =Date().includes("Oct 21");
if(n == true){
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/newerhome"><meta content="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/ooglelogo%20v.png" itemprop="image"><img src="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/ooglelogo%20v.png" class="floatin_oogle"></a>';
};
if(m == true){
document.getElementById("image").innerHTML='<a href="newerhome"><meta content="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/IMG_0724.JPG" itemprop="image"><img src="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/IMG_0724.JPG" class="floatin_oogle"></a>';
};
if(o == true){
document.getElementById("image").innerHTML='<a href="newerhome"><meta content="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/Oogle%20logo%20outline.png?raw=true" itemprop="image"><img src="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/Oogle%20logo%20outline.png?raw=true" class="floatin_oogle"></a>';
};
if(baktoskool == true){
document.getElementById("image").innerHTML='<a href="newerhome"><meta content="https://tebahpla.github.io/alternite_logos/ooglebacktoskool.JPG" itemprop="image"><img src="https://tebahpla.github.io/alternite_logos/ooglebacktoskool.JPG" class="floatin_oogle"></a>';
};
if(peaceday == true){
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/newoogle#gsc.tab=0&gsc.q=world%20peace%20day&gsc.sort="><meta content="https://tebahpla.github.io/alternite_logos/ooglepeace.png" itemprop="image"><img src="https://tebahpla.github.io/alternite_logos/ooglepeace.png" class="floatin_oogle"></a>';
};
if(rabies == true){
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/newoogle#gsc.tab=0&gsc.q=world%20rabies%20day&gsc.sort="><meta content="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/rabiesday.png?raw=true" itemprop="image"><img src="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/rabiesday.png?raw=true" class="floatin_oogle" width="256"></a>';
};
if(halloween == true){
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/newoogle?q=Halloween"><meta content="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/halloween.png?raw=true" itemprop="image"><img src="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/halloween.png?raw=true" class="floatin_oogle" ></a>';
};
if(nathaniel == true){
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/newoogle"><meta content="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/nathaniels-birthday.png" itemprop="image"><img src="https://raw.githubusercontent.com/tebahpla/tebahpla.github.io/master/alternite_logos/nathaniels-birthday.png" class="floatin_oogle" ></a>';
};
if(genocide == true){
document.getElementById("html").style.background ="url('https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/totem.jpg?raw=true')";
document.getElementById("html").style.background ="repeat: no-repeat;";
document.getElementById("html").style.background ="position: right;";
document.getElementById("image").innerHTML='<a href="https://tebahpla.github.io/oogle?q=Genocide%20or%20indigenous%20peoples%20day"><meta content="https://github.com/tebahpla/tebahpla.github.io/blob/master/alternite_logos/halloween.png?raw=true" itemprop="image"><img src="https://tebahpla.github.io/oogle%20logo.svg" class="floatin_oogle" title="Genocide Day"></a>';
};
function setCookie(cname,cvalue,exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires=" + d.toGMTString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
user = profile.getName();
if(getCookie("signed") == null || getCookie("signed") == "" || getCookie("signed") == ' '){
user = profile.getName();
document.getElementById("greeting").innerHTML="Welcome, " + user+".";
setCookie("username", user, 3000);
setCookie("signed", "yes", 3000);
}
document.getElementById('sss').innerHTML=' | <a href="#" onclick="signOut();" >Sign out</a> ';
document.getElementById('logg').style.display = 'none';
}
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
var user = "Example Name";
function checkCookie() {
user=getCookie("username");
if (user != "") {
document.getElementById("greeting").innerHTML="Welcome back, " + user+".";
document.getElementById("setr").innerHTML="Change Name";
} else {
user = "Example Name"
}
}
function setGreet(){
user = prompt("What would you like Oogle to call you?",user);
if (user != "" && user != null) {
setCookie("username", user, 3000);
document.getElementById("greeting").innerHTML="Welcome, " + user+".";
document.getElementById("setr").innerHTML="Change Name";
}
}
function flipoff(id){
var e = document.getElementById(id);
if (e.style.display == 'block' || e.style.display=='') e.style.display = 'none'; else e.style.display = 'block';
}
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
console.log('User signed out.');
document.getElementById('logg').style.display = 'block';
document.getElementById('sss').innerHTML='';
});
}
</script>
<br><table onload='getanswer(document.getElementById("gsc-i-id1").value)' style="height:50% !important;"><tr><td style='width:100%; height:100%'><gcse:search onkeypress='getanswer(document.getElementById("gsc-i-id1").value)' onload='getanswer(document.getElementById("gsc-i-id1").value)'><b><img src="https://github.com/tebahpla/tebahpla.github.io/blob/master/Ooglething.jpg?raw=true" alt="Ooglething.jpg"/><br>Loading....</b><br><br><br><br></gcse:search></td><td style='width:30%; height:100% !important'><div style='width:auto; margin-top:0px !important; top:0 !important; right:0; height:100% !important' id='answer' align="top" class='hiding'></div></td></tr></table> <br>
<br> <form id='myForm' action="https://tebahpla.github.io/newoogle">
<input type="text" name="q" id="transcript" placeholder="Speak" />
</form> <img onclick="startDictation()" class='speech' src="mic.svg" width='37' height='37' /> <br><h2 id='speaknow'></h2> <br><h1 id="πππππ" class="support" title="ππππππππππππππππππππππππππππππ">πππππ <br> YOU WOULD GET IT IF YOU WENT TO BILLINGS!</h1>
<br><br><br><nobr><p nowrap> <br><a href="translate">Translate</a> | <a href="https://tebahpla.github.io/drive">Drive</a> | <a href='https://vincens2005.github.io/t-rex-runner/'>Dinosaur Game</a> | <a href="calc">Calculator</a> | <a href="maps">Maps</a> | <a href="roamos">Roam OS</a> | <a href="https://tebahpla.github.io/powerpoop/PowerPoop">PowerPoop</a> | <a href='https://tebahpla.github.io/beerie/beerie.html' title='Beerie hates you'>Beerie</a> | <a href='https://goo.gl/forms/dIXI2c9yeTW2wF213'>Report a bug</a> | <a onclick="flipoff('πππππ')" >Support</a><jibber id='sss'></jibber><nobr> <div class="g-signin2" data-onsuccess="onSignIn" data-longtitle="true" id='logg' title='Ironically, you can sign in with Google.' nowrap></div></p></nobr><br><br><br><br><br><br><br><br>
<section id="add"><iframe src="https://docs.google.com/document/d/1tMcUEiUVSwaTo51Fa3otCdPMgKWPMxufmwhvaDs41Vk/pub?embedded=true" width="1000" height="2000" frameborder="0" onkeypress='getanswer(document.getElementById("gsc-i-id1").value)' onclick='getanswer(document.getElementById("gsc-i-id1").value)' onload='getanswer(document.getElementById("gsc-i-id1").value)'></iframe></section>
<title>Oogle Search</title><div id="mySidenav" class="sidenav">
<a class='deployLink' href="https://tebahpla.github.io/redirectbasedonbrowsers.html" id="about" target='blank'> Add Oogle to your browser</a>
<a id="setr" onclick="setGreet()">Set Name</a>
</div>
<link href="https://tebahpla.github.io/style.css" rel="stylesheet"><!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58f14f9d42d58017"></script> </body>
</html>