-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- NOTICE: config.default.php has changed, re-create your config.php!! - [fix] No longer caches empty results - [fix] No longer make a request if the search query is empty - [fix] Movie highlight/box office cache now works - [fix] Language selector for Qwant, Wikipedia and Duckduckgo - [fix] Season and Episode filter for tv show searches - [fix] Safe search filter now actually works - [fix] Magnet Search category exclusion filter now actually works - [fix] Image size filter works more reliably - [fix] Handling of doublequotes in search queries - [fix] Search sources now show result amounts accurately - [fix] Old cache files are now actually deleted when expired - [fix] Search tabs not properly centered on smaller screens - [new] Box Office page with latest/new downloads from a few supported torrent websites - [new] News page with the latest news from major outlets - [new] Popup with movie info and download links for YTS Movie Highlights - [new] CSS colorschemes configurable in config.php - [new] Easily share magnet links with other Goosle users - [new] Search results from Quant API - [new] Search results from Brave - [new] Image results from Qwant Image API - [new] News results from Hackernews - [new] News results from Yahoo! News - [new] News results from Brave News - [new] News results from Qwant News API - [new] Magnet results from Sukebei.nyaa.si - [new] Special search for IP Lookups via ipify (Search for "ip" or "myip") - [new] Safe search switch for Yahoo! Images - [new] Image size switch for Qwant Images - [new] Merge missing magnet meta data from duplicate results if it doesn't already exist in the matched previous result - [new] Detect meta data for Magnet Search results such as sound and video quality. - [tweak] Cache ttl is now in hours (was minutes) - [tweak] Optimizations in CSS, HTML separators and more - [tweak] Moved icons into CSS so they can be colored using colorschemes - [tweak] Better handling of image results - [tweak] Better handling of empty/incomplete results for all engines - [tweak] Better handling of empty/missing meta data for all magnet engines - [tweak] Better category detection for Limetorrent magnets - [tweak] Raised Magnet search limit to 200 (was 50) - [tweak] Raised Wikipedia search limit to 20 (was 10) - [tweak] Hide magnet results with 0 seeders by default - [tweak] Uniform array formatting for all engines - [tweak] Consistent use of single-quotes and double-qoutes - [tweak] File size string conversion and formatting for all image and magnet engines - [tweak] Update checks are now done weekly(ish) via the Cron job - [tweak] Updated .htaccess caching rules - [removed] CSS for 320px viewport
- Loading branch information
Arnan de Gans
committed
Jun 20, 2024
1 parent
7ff6438
commit a5740b3
Showing
78 changed files
with
4,750 additions
and
2,112 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import "dark.css" (prefers-color-scheme: dark); | ||
@import "default.css" (prefers-color-scheme: light); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
:root { | ||
/* Main colors */ | ||
--color-accent: #1fa4d1; /* Blue */ | ||
--background: #232323; /* Almost black */ | ||
--background-alt: #1f242b; /* Almost black */ | ||
--text: #eff1f7; /* Almost white */ | ||
--text-alt: #eff1f7; /* Almost white */ | ||
--border: #5f6368; /* Grey */ | ||
--border-alt: #466f82; /* Dark blue */ | ||
--button-bg: #1fa4d1; /* Blue */ | ||
--button-text: #f0f6fc; /* Almost white */ | ||
--button-hover: #466f82; /* Dark blue */ | ||
--link: #2f8ad0; /* Blue */ | ||
--link-visited: #6d59a3; /* Purple */ | ||
--link-source: #eff1f7; /* Almost white */ | ||
--meta: #999; /* Grey */ | ||
--result-special-background: #ebf3fa; /* Light blue */ | ||
|
||
/* Front page (Also used on oAUTH page) */ | ||
--startpage-border: #545a5f; /* Grey */ | ||
--startpage-border-alt: #6c747a; /* Lighter grey */ | ||
--startpage-button-bg: #2b323b; /* Blueish grey */ | ||
--startpage-button-bg-alt: #363e4a; /* Lighter blueish grey */ | ||
|
||
/* Misc */ | ||
--green: #518257; /* Green */ | ||
--red: #b30000; /* Red */ | ||
--yellow: #ffb900; /* Golden yellow */ | ||
--warning: #b37d00; /* Dark yellow */ | ||
--warning-background: #ffffb3; /* Yellow */ | ||
--error: #b30000; /* Red */ | ||
--error-background: #ffcccc; /* red */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
:root { | ||
/* Main colors */ | ||
--color-accent: #1fa4d1; /* Blue */ | ||
--background: #fff; /* White */ | ||
--background-alt: #1f242b; /* Almost black */ | ||
--text: #494949; /* Dark grey */ | ||
--text-alt: #f0f6fc; /* Almost white */ | ||
--border: #5f6368; /* Grey */ | ||
--border-alt: #466f82; /* Dark blue */ | ||
--button-bg: #1fa4d1; /* Blue */ | ||
--button-text: #f0f6fc; /* Almost white */ | ||
--button-hover: #466f82; /* Dark blue */ | ||
--link: #4495d4; /* Blue */ | ||
--link-visited: #6d59a3; /* Purple */ | ||
--link-source: #3f6e35; /* Green */ | ||
--meta: #666; /* Grey */ | ||
--result-special-background: #ebf3fa; /* Light blue */ | ||
|
||
/* Front page (Also used on oAUTH page) */ | ||
--startpage-border: #545a5f; /* Grey */ | ||
--startpage-border-alt: #6c747a; /* Lighter grey */ | ||
--startpage-button-bg: #2b323b; /* Blueish grey */ | ||
--startpage-button-bg-alt: #363e4a; /* Lighter blueish grey */ | ||
|
||
/* Misc */ | ||
--green: #518257; /* Green */ | ||
--red: #c00; /* Red */ | ||
--yellow: #ffb900; /* Golden yellow */ | ||
--warning: #db9900; /* Dark yellow */ | ||
--warning-background: #ffffe0; /* Yellow */ | ||
--error: #c00; /* Red */ | ||
--error-background: #ffebe8; /* Faded red */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
:root { | ||
/* Main colors */ | ||
--color-accent: #1fa4d1; /* Blue */ | ||
--background: #fff; /* White */ | ||
--background-alt: #ebf3fa; /* Light blue */ | ||
--text: #494949; /* Dark grey */ | ||
--text-alt: #494949; /* Dark grey */ | ||
--border: #5f6368; /* Grey */ | ||
--border-alt: #466f82; /* Dark blue */ | ||
--button-bg: #1fa4d1; /* Blue */ | ||
--button-text: #f0f6fc; /* Almost white */ | ||
--button-hover: #466f82; /* Dark blue */ | ||
--link: #4495d4; /* Blue */ | ||
--link-visited: #6d59a3; /* Purple */ | ||
--link-source: #3f6e35; /* Green */ | ||
--meta: #666; /* Grey */ | ||
--result-special-background: #ebf3fa; /* Light blue */ | ||
|
||
/* Front page (Also used on oAUTH page) */ | ||
--startpage-border: #545a5f; /* Grey */ | ||
--startpage-border-alt: #6c747a; /* Lighter grey */ | ||
--startpage-button-bg: #2b323b; /* Blueish grey */ | ||
--startpage-button-bg-alt: #363e4a; /* Lighter blueish grey */ | ||
|
||
/* Misc */ | ||
--green: #518257; /* Green */ | ||
--red: #c00; /* Red */ | ||
--yellow: #ffb900; /* Golden yellow */ | ||
--warning: #db9900; /* Dark yellow */ | ||
--warning-background: #ffffe0; /* Yellow */ | ||
--error: #c00; /* Red */ | ||
--error-background: #ffebe8; /* Faded red */ | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* ------------------------------------------------------------------------------------ | ||
* Goosle - The fast, privacy oriented search tool that just works. | ||
* | ||
* COPYRIGHT NOTICE | ||
* Copyright 2023-2024 Arnan de Gans. All Rights Reserved. | ||
* | ||
* COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT. | ||
* By using this code you agree to indemnify Arnan de Gans from any | ||
* liability that might arise from its use. | ||
------------------------------------------------------------------------------------ */ | ||
|
||
/*-------------------------------------- | ||
Share magnet results to the clipboard | ||
--------------------------------------*/ | ||
function clipboard(id) { | ||
// Get the text field element and set up a response | ||
var share_string = document.getElementById(id); | ||
var success, message; | ||
|
||
// Select the text field | ||
share_string.select(); | ||
share_string.setSelectionRange(0, share_string.value.length); | ||
|
||
// Copy the text inside the text field to the clipboard | ||
success = navigator.clipboard.writeText(share_string.value); | ||
|
||
// Visual response | ||
if(success) { | ||
message = "<span class=\"success green\">Link copied to the clipboard.</span><br />Paste the link anywhere you want with ctrl+v (or cmd+v on macOS).<br />Or use the paste function in your app." | ||
} else { | ||
message = "<span class=\"fail red\">Copying is not supported or got blocked.</span><br />Copy the link by pressing ctrl+c (or cmd+c on macOS).<br />Or use the select and copy functions from the context menu." | ||
} | ||
response = document.getElementById(id + '-response'); | ||
response.innerHTML = message; | ||
|
||
// Set up a timer to remove the visual response after a few seconds | ||
setTimeout(function() { | ||
response.innerHTML = ""; | ||
}, 10000); | ||
} | ||
|
||
/*-------------------------------------- | ||
Handle magnet share, highlight and box office popups | ||
--------------------------------------*/ | ||
function openpopup(id) { | ||
document.getElementById(id).classList.add('open'); | ||
document.body.classList.add('goosebox-open'); | ||
} | ||
|
||
function closepopup() { | ||
document.querySelector('.goosebox.open').classList.remove('open'); | ||
document.body.classList.remove('goosebox-open'); | ||
} | ||
|
||
// close modals on background click | ||
window.addEventListener('load', function() { | ||
document.addEventListener('click', event => { | ||
if (event.target.classList.contains('goosebox')) { | ||
closepopup(); | ||
} | ||
}); | ||
}); |
File renamed without changes.
Oops, something went wrong.