Skip to content

Commit

Permalink
Version 1.5
Browse files Browse the repository at this point in the history
- 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
Show file tree
Hide file tree
Showing 78 changed files with 4,750 additions and 2,112 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file modified apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/.DS_Store
Binary file not shown.
Binary file added assets/css/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions assets/css/auto.css
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);
33 changes: 33 additions & 0 deletions assets/css/dark.css
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 */
}
33 changes: 33 additions & 0 deletions assets/css/default.css
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 */
}
33 changes: 33 additions & 0 deletions assets/css/light.css
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 */
}
395 changes: 193 additions & 202 deletions assets/css/styles.css

Large diffs are not rendered by default.

Binary file added assets/images/.DS_Store
Binary file not shown.
Binary file added assets/images/goosle-small.webp
Binary file not shown.
Binary file modified assets/images/goosle.webp
Binary file not shown.
Binary file removed assets/images/image.png
Binary file not shown.
Binary file removed assets/images/magnet.png
Binary file not shown.
Binary file removed assets/images/search.png
Binary file not shown.
Binary file added assets/js/.DS_Store
Binary file not shown.
62 changes: 62 additions & 0 deletions assets/js/goose.js
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.
Loading

0 comments on commit a5740b3

Please sign in to comment.