Skip to content

Commit

Permalink
new: You can hide pre-defined search buttons now
Browse files Browse the repository at this point in the history
(find these options under Deep Search in the Settings)
  • Loading branch information
lscambo13 committed Sep 9, 2023
1 parent 73cf917 commit 2a5efa4
Show file tree
Hide file tree
Showing 6 changed files with 766 additions and 655 deletions.
490 changes: 259 additions & 231 deletions index.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
importBookmarks,
resetAll,
resetBookmarks,
showNestedOptions,
toggleFavicons,
} from './js_modules/preferences.js';
import { isUrlValid } from './js_modules/validators.js';
Expand Down Expand Up @@ -159,6 +160,9 @@ addEventListenerOnID('toggle-favicons-btn', 'click', toggleFavicons);
// addEventListenerOnID('toggle-glow-btn', 'click', toggleGlow);
addEventListenerOnID('update-username-btn', 'click', askUserName);
addEventListenerOnID('update-customtext-btn', 'click', askCustomText);
addEventListenerOnID('deep-search-btn', 'click', (event) => {
showNestedOptions('deep-search-nested');
});
addEventListenerOnID('update-customdomain-btn', 'click', askCustomDomain);
addEventListenerOnID('fetch-bookmarks-btn', 'click', fetchBookmarks);
addEventListenerOnID('reset-bookmarks-btn', 'click', resetBookmarks);
Expand Down
36 changes: 20 additions & 16 deletions js_modules/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,31 @@ export const DUCKDUCKGO_SEARCH_DOMAIN = 'https://duckduckgo.com/?q=';
// export const SEARCH_BUTTON_DOM =
// document.getElementsByClassName('searchButton').item(0).childNodes[1];
export const BOOKMARKS_SAMPLE_URL =
'https://raw.githubusercontent.com/lscambo13/casamia/main/custom_bookmarks_sample/home-page-bookmarks-2023-1-23.json';
'https://raw.githubusercontent.com/lscambo13/casamia/main/custom_bookmarks_sample/home-page-bookmarks-2023-1-23.json';
export const WALLPAPERS_URL = './wallpapers/';
export const DEF_WALLPAPER = 'space-wallpaper-20082314113712.webp';
export const DEF_CUSTOM_TEXT = 'Custom Text';
export const DEF_PREF =
{
'bg-img-drop': 'shown',
'bg-blur-drop': 'off',
'bg-glow-drop': 'auto',
'weather-display-drop': 'off',
'footer-display-drop': 'on',
'def-widget-drop': 'casamia',
'widget-style-drop': 'minimal',
'greeting-display-drop': 'on',
'show-seconds-drop': 'off',
'clock-style-drop': '12hrs',
'am-pm-style-drop': 'uppercase',
'def-search-engine-drop': 'google',
'searchbar-position-drop': 'top',
'searchbar-color-theme-drop': 'glass',
'show-titles-drop': 'off',
'bg-img-drop': 'shown',
'bg-blur-drop': 'off',
'bg-glow-drop': 'auto',
'weather-display-drop': 'off',
'footer-display-drop': 'on',
'def-widget-drop': 'casamia',
'widget-style-drop': 'minimal',
'greeting-display-drop': 'on',
'show-seconds-drop': 'off',
'clock-style-drop': '12hrs',
'am-pm-style-drop': 'uppercase',
'def-search-engine-drop': 'google',
'searchbar-position-drop': 'top',
'searchbar-color-theme-drop': 'glass',
'show-titles-drop': 'off',
'movies-search-display-drop': 'shown',
'tv-search-display-drop': 'shown',
'games-search-display-drop': 'shown',
'ebooks-search-display-drop': 'shown',
};

// 'https://github.com/lscambo13/casamia/raw/main/wallpapers/'
Expand Down
Loading

0 comments on commit 2a5efa4

Please sign in to comment.