let saved_config = JSON.parse(localStorage.getItem("CONFIG")); const default_config = { overrideStorage: true, temperature: { location: 'Espoo, Finland', scale: "C", }, clock: { format: "h:i p", iconColor: "#ea6962", }, search: { engines: { w: ["https://whoogle.no-logs.com/search?q=", "Whoogle"], d: ["https://duckduckgo.com/html?q=", "DuckDuckGo"], y: ["https://youtube.com/results?search_query=", "Youtube"], r: ["https://www.reddit.com/search/?q=", "Reddit"], }, }, keybindings: { "s": "search-bar", "q": "config-tab", }, disabled: [], localIcons: false, fastlink: "https://chat.openai.com/", openLastVisitedTab: true, tabs: [ { name: "chi ll", background_url: "src/img/banners/cbg-2.gif", categories: [{ name: "Social Media", links: [ { name: "discord", url: "https://app.discord.com/", icon: "brand-discord", icon_color: "#a9b665", }, { name: "twitter", url: "https://twitter.com/home", icon: "brand-twitter-filled", icon_color: "#7daea3", }, { name: "reddit", url: "https://www.reddit.com/", icon: "brand-reddit", icon_color: "#e78a4e", }, { name: "mastodon", url: "https://tech.lgbt/home/", icon: "brand-mastodon", icon_color: "#5B49E0" }, ], }, { name: "Games", links: [ { name: "chess", url: "https://www.chess.com/home", icon: "chess-queen-filled", icon_color: "#a9b665", }, { name: "monkeytype", url: "https://monkeytype.com/", icon: "keyboard", icon_color: "#e78a4e", }, { name: "tetris", url: "https://tetris.com/", icon: "brand-apple-arcade", icon_color: "#ea6962", }, ], }, { name: "media", links: [ { name: "youtube", url: "https://www.youtube.com/", icon: "brand-youtube-filled", icon_color: "#ea6962", }, { name: "anime", url: "https://aniwave.to/home", icon: "ripple", icon_color: "#48257A", }, { name: "twitch", url: "https://www.twitch.tv/", icon: "brand-twitch", icon_color: "#d3869b", }, { name: "spotify", url: "https://open.spotify.com/", icon: "brand-spotify", icon_color: "#1ED760" }, ], }], }, { name: "design", background_url: "src/img/banners/cbg-6.gif", categories: [ { name: "inspiration", links: [ { name: "pinterest", url: "https://www.pinterest.es/", icon: "brand-pinterest", icon_color: "#ea6962", }, { name: "artstation", url: "https://www.artstation.com/?sort_by=community", icon: "chart-area", icon_color: "#7daea3", }, { name: "leonardo ai", url: "https://app.leonardo.ai/", icon: "brand-openai", icon_color: "#89b482", }, { name: "dribble", url: "https://dribbble.com/following", icon: "brand-dribbble-filled", icon_color: "#d3869b", }, ], }, { name: "resources", links: [ { name: "figma", url: "https://www.figma.com", icon: "brand-figma", icon_color: "#d3869b", }, { name: "uxpro", url: "https://uxpro.cc/", icon: "components", icon_color: "#a9b665", }, { name: "colorhunt", url: "https://colorhunt.co/", icon: "color-picker", icon_color: "#ea6962", }, { name: "adobe color", url: "https://color.adobe.com/es/create/color-wheel", icon: "brand-adobe", icon_color: "#7daea3", }, { name: "terminalsexy", url: "https://terminal.sexy", icon: "prompt", icon_color: "#e78a4e", }, ], }, { name: "resources 3d", links: [ { name: "thingiverse", url: "https://www.thingiverse.com/", icon: "circle-letter-t", icon_color: "#7daea3", }, ], }, ], }, { name: "dev", background_url: "src/img/banners/cbg-7.gif", categories: [ { name: "repositories", links: [ { name: "github", url: "https://github.com/", icon: "brand-github", icon_color: "#7daea3", }, { name: "gitlab", url: "https://gitlab.com/", icon: "brand-gitlab", icon_color: "#e78a4e", }, { name: "haitea", url: "https://git.blahai.gay/", icon: "teapot", icon_color: "#609926" } ], }, { name: "resources", links: [ { name: "phind", url: "https://www.phind.com/", icon: "brand-openai", icon_color: "#89b482", }, { name: "flutter", url: "https://docs.flutter.dev/ui", icon: "brand-flutter", icon_color: "#7daea3", }, { name: "hacktricks", url: "https://book.hacktricks.xyz/welcome/readme", icon: "biohazard", icon_color: "#ea6962", }, { name: "vscode", url: "https://vscode.dev/", icon: "brand-vscode", icon_color: "#7daea3", }, ], }, { name: "challenges", links: [ { name: "hackthebox", url: "https://app.hackthebox.com", icon: "box", icon_color: "#a9b665", }, { name: "cryptohack", url: "https://cryptohack.org/challenges/", icon: "brain", icon_color: "#e78a4e", }, { name: "tryhackme", url: "https://tryhackme.com/dashboard", icon: "brand-onedrive", icon_color: "#ea6962", }, { name: "hackerrank", url: "https://www.hackerrank.com/dashboard", icon: "code-asterix", icon_color: "#a9b665", }, ], }, ], }, { name: "myself", background_url: "src/img/banners/cbg-9.gif", categories: [ { name: "mails", links: [ { name: "gmail", url: "https://mail.google.com/mail/u/0/", icon: "brand-gmail", icon_color: "#ea6962", }, { name: "protonmail", url: "https://mail.proton.me/u/1/inbox", icon: "brand-campaignmonitor", icon_color: "#48257", }, ], }, { name: "storage", links: [ { name: "drive", url: "https://drive.google.com/drive/u/0/my-drive", icon: "brand-google-drive", icon_color: "#e78a4e", }, { name: "fotos", url: "https://photos.google.com/u/1", icon: "photo-filled", icon_color: "#ea6962", }, ], }, { name: "school", links: [ { name: "classroom", url: "https://classroom.google.com/u/2/?pli=1", icon: "chalkboard", icon_color: "#7daea3", }, { name: "wilma", url: "https://vantaa.inschool.fi/", icon: "letter-w", icon_color: "#7daea3", }, { name: "otava", url: "https://opiskelija.otava.fi/", icon: "star", icon_color: "#7daea3", }, ], }, ], }, ], }; const CONFIG = new Config(saved_config ?? default_config); // const CONFIG = new Config(default_config); (function() { var css = document.createElement('link'); css.href = 'src/css/tabler-icons.min.css'; css.rel = 'stylesheet'; css.type = 'text/css'; if (!CONFIG.config.localIcons) document.getElementsByTagName('head')[0].appendChild(css); })();