53 | The world's best worst search engine.
81 | 82 | 88 |├── .replit ├── .gitignore ├── replit.nix ├── public ├── Cheesgle.png ├── Img │ ├── cheese.png │ ├── cheesgle_long.png │ └── mouldy_cheese.png ├── robots.txt ├── Credits │ ├── about.js │ ├── about.css │ └── credits.html ├── Verified │ ├── about.js │ ├── about.css │ └── about.html ├── 404.html ├── About │ ├── about.js │ ├── about.css │ └── about.html ├── Add │ ├── add.js │ ├── add.css │ └── add.html ├── sitemap.xml ├── Search │ ├── search.css │ ├── search.html │ ├── search.js │ └── cheeses.json ├── index.html └── style.css ├── saveDatabase.js ├── README.md ├── reliableSites.json ├── package.json └── index.js /.replit: -------------------------------------------------------------------------------- 1 | run = "npm start" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | db.txt 3 | dbb.txt -------------------------------------------------------------------------------- /replit.nix: -------------------------------------------------------------------------------- 1 | { pkgs }: { 2 | deps = [ 3 | pkgs.nodejs-16_x 4 | ]; 5 | } -------------------------------------------------------------------------------- /public/Cheesgle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingMASTER398/Cheesgle/HEAD/public/Cheesgle.png -------------------------------------------------------------------------------- /public/Img/cheese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingMASTER398/Cheesgle/HEAD/public/Img/cheese.png -------------------------------------------------------------------------------- /public/Img/cheesgle_long.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingMASTER398/Cheesgle/HEAD/public/Img/cheesgle_long.png -------------------------------------------------------------------------------- /public/Img/mouldy_cheese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingMASTER398/Cheesgle/HEAD/public/Img/mouldy_cheese.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /Search 3 | Allow: / 4 | Allow: /index.html 5 | Allow: /About/about.html 6 | Allow: /Credits/credits.html 7 | Allow: /Add/add.html -------------------------------------------------------------------------------- /saveDatabase.js: -------------------------------------------------------------------------------- 1 | const { parentPort, workerData } = require("worker_threads"); 2 | var jsonpack = require("jsonpack"); 3 | var fs = require("fs"); 4 | 5 | fs.writeFileSync("./dbb.txt", jsonpack.pack(workerData)); 6 | fs.writeFileSync("./db.txt", jsonpack.pack(workerData)); 7 | 8 | parentPort.postMessage(true); 9 | process.exit(); 10 | -------------------------------------------------------------------------------- /public/Credits/about.js: -------------------------------------------------------------------------------- 1 | function newSearch() { 2 | window.location.href = 3 | "../Search/search.html?q=" + 4 | document.getElementsByClassName("searchbar")[0].value; 5 | } 6 | 7 | document 8 | .getElementsByClassName("searchbar")[0] 9 | .addEventListener("keyup", function (event) { 10 | event.preventDefault(); 11 | if (event.keyCode === 13) { 12 | newSearch(); 13 | } 14 | }); 15 | -------------------------------------------------------------------------------- /public/Verified/about.js: -------------------------------------------------------------------------------- 1 | function newSearch() { 2 | window.location.href = 3 | "../Search/search.html?q=" + 4 | document.getElementsByClassName("searchbar")[0].value; 5 | } 6 | 7 | document 8 | .getElementsByClassName("searchbar")[0] 9 | .addEventListener("keyup", function (event) { 10 | event.preventDefault(); 11 | if (event.keyCode === 13) { 12 | newSearch(); 13 | } 14 | }); 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cheesgle 2 | The world's best worst search engine, based on cheese. 3 | See it live at [Cheesgle.com](https://cheesgle.com/) 4 | 5 | This repository has now been linked to the Replit counterpart found at [https://replit.com/@codingMASTER398/Cheesgle](https://replit.com/@codingMASTER398/Cheesgle). 6 | 7 | Don't `git push main --force`, kids. 8 | 9 | Best way to set this up is just to fork the Replit repo. 10 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 6 |
9 | Looks like ye've encountered a dead end. Such a shame!
10 | Try one of these links on for size:
11 | Random cheese
12 | Home
13 | Search 'foot cheese'
14 | Hope one of 'em is of help.
15 |
55 |
56 |
62 |
65 |
53 | The world's best worst search engine.
81 | 82 | 88 |
52 |
53 |
59 |
62 |
52 |
53 |
54 |
60 |
63 |
70 | Verified sites are basically our way to filter out spam.
Verified
71 | sites have the
72 | check next to them in
73 | search results, so you can easily spot them out.
They can also
74 | have more pages crawled overall (see
75 | add a page).
If you would like a
76 | website to be verified, join my
77 | Discord.
78 |
67 |
68 |
74 |
77 |
85 |
91 | Searching...
92 | 107 |${element.description}
79 |${protect(element.href)}
80 |Sourced fresh from cheese.com
99 | 100 | 101 | ` 102 | } 103 | } 104 | 105 | let resultsHtml = `Page ${json.page}/${json.pages}
116 |
119 |
124 |
129 |
134 |
55 |
56 |
57 |
63 |
66 |
70 | Created by
71 | coding398 (codingMASTER398)
72 | Not modified (add your name here if you modified this Cheesgle)
73 | index design by Himm Lai
74 | NPM modules used:
75 |
95 | MIT License Copyright (c) 2022 coding398 Permission is hereby granted, 96 | free of charge, to any person obtaining a copy of this software and 97 | associated documentation files (the "Software"), to deal in the 98 | Software without restriction, including without limitation the rights 99 | to use, copy, modify, merge, publish, distribute, sublicense, and/or 100 | sell copies of the Software, and to permit persons to whom the 101 | Software is furnished to do so, subject to the following conditions: 102 | The above copyright notice and this permission notice shall be 103 | included in all copies or substantial portions of the Software. THE 104 | SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 105 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 106 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 107 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 108 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 109 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 110 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 111 |
112 |