From e29f84caa5b7c73ca304e29fe727f9763abf2f43 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sun, 25 Jan 2026 09:56:20 +0530 Subject: [PATCH] feat: add Solana site styles and update detection logic for Solana domain --- borlander/content.js | 5 +++++ borlander/manifest.json | 3 ++- borlander/popup.js | 3 ++- borlander/sites/solana.com/styles.css | 30 +++++++++++++++++++++++++ borlander/sites/sonarr.local/styles.css | 3 ++- 5 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 borlander/sites/solana.com/styles.css diff --git a/borlander/content.js b/borlander/content.js index f545804..8a914a9 100644 --- a/borlander/content.js +++ b/borlander/content.js @@ -7,6 +7,7 @@ chrome.storage.local.get([domain, `${domain}_mode`], (result) => { let siteMatched = false; if (!forceGlobal) { + // 1. SONARR const isSonarr = getComputedStyle(document.documentElement).getPropertyValue('--sonarrBlue').trim() !== "" || document.title.toLowerCase().includes('sonarr'); @@ -31,6 +32,10 @@ chrome.storage.local.get([domain, `${domain}_mode`], (result) => { if (!siteMatched && domain.includes('github.com')) { injectSiteStyle('sites/github.com/styles.css'); siteMatched = true; } + + if (!siteMatched && domain.includes('solana.com')) { + injectSiteStyle('sites/solana.com/styles.css'); siteMatched = true; + } } if (!siteMatched) { diff --git a/borlander/manifest.json b/borlander/manifest.json index 622cc87..1be10fd 100644 --- a/borlander/manifest.json +++ b/borlander/manifest.json @@ -36,7 +36,8 @@ "sites/chess.com/styles.css", "sites/gitea.local/styles.css", "sites/anilist.co/styles.css", - "sites/github.com/styles.css" + "sites/github.com/styles.css", + "sites/solana.com/styles.css" ], "matches": [ "" diff --git a/borlander/popup.js b/borlander/popup.js index 31f0bf1..e676a9a 100644 --- a/borlander/popup.js +++ b/borlander/popup.js @@ -23,8 +23,9 @@ chrome.tabs.query({ active: true, currentWindow: true }, async (tabs) => { const isAnilist = domain.includes('anilist.co'); const isGitea = !!document.querySelector('meta[content*="gitea"]') || domain.includes('gitea'); const isGithub = domain.includes('github.com'); + const isSolana = domain.includes('solana.com'); - return isSonarr || isChess || isAnilist || isGitea || isGithub; + return isSonarr || isChess || isSolana || isAnilist || isGitea || isGithub; } }); hasSpecificTheme = detectionResult[0]?.result || false; diff --git a/borlander/sites/solana.com/styles.css b/borlander/sites/solana.com/styles.css new file mode 100644 index 0000000..17e444c --- /dev/null +++ b/borlander/sites/solana.com/styles.css @@ -0,0 +1,30 @@ +:root { + --body-bg: #0000A4 !important; + --body-text: #fafafafa !important; + --body-text-secondary: #85acfffa !important; + --mdx-link-color: #ffff4e !important; + --mdx-link-color-hover: #ffff4e !important; + --fd-border: 240 84% 41% !important; + --fd-muted-background: 240 85% 41% !important; +} + +.\!no-underline { + color: #678ddf !important; +} + +.fumadocs article a { + --tw-prose-links: #ffff4e !important; +} + +.fumadocs { + --fd-muted-background: 240 85% 41% !important; +} + +.text-fd-muted-foreground { + color: #678dff; +} + +.bg-\[rgb\(18_18_18\/95\%\)\], +.bg-\[rgb\(18_18_18_\/_95\%\)\] { + background-color: #000080; +} \ No newline at end of file diff --git a/borlander/sites/sonarr.local/styles.css b/borlander/sites/sonarr.local/styles.css index 652879c..d6a0db2 100644 --- a/borlander/sites/sonarr.local/styles.css +++ b/borlander/sites/sonarr.local/styles.css @@ -33,7 +33,7 @@ --warningColor: #FFFFB6 !important; /* Borland Yellow */ --warningBackgroundColor: #FFFFB6 !important; - --infoColor: #C6C5FE !important; + --infoColor: #C6C5FE !importantK; /* Borland Cyan */ /* --- Navigation & Sidebar --- */ @@ -55,6 +55,7 @@ --defaultBackgroundColor: #4F4F4F !important; --defaultButtonTextColor: #EEEEEE !important; --primaryBackgroundColor: #96CBFE !important; + --helpTextColor: #c3c3ff !important; /* --- Calendar & Tables --- */ --calendarBackgroundColor: #0000A4 !important;