feat: add Solana site styles and update detection logic for Solana domain

This commit is contained in:
2026-01-25 09:56:20 +05:30
parent 7290e4013f
commit e29f84caa5
5 changed files with 41 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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": [
"<all_urls>"

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;