Merge pull request #31 from outis1one/claude/read-repo-YMu21
feat: add AI services and developer/support sites to built-in domains
This commit is contained in:
@@ -21,12 +21,26 @@ const tabCounts = new Map();
|
||||
|
||||
// Built-in URL patterns
|
||||
const BUILTIN_URL_PATTERNS = [
|
||||
// AI services
|
||||
'https://claude.ai/*',
|
||||
'https://chatgpt.com/*',
|
||||
'https://chat.openai.com/*',
|
||||
'https://grok.x.ai/*',
|
||||
'https://x.com/i/grok*',
|
||||
'https://gemini.google.com/*',
|
||||
'https://www.perplexity.ai/*',
|
||||
'https://copilot.microsoft.com/*',
|
||||
'https://chat.deepseek.com/*',
|
||||
'https://huggingface.co/chat/*',
|
||||
'https://poe.com/*',
|
||||
// Developer & support sites
|
||||
'https://github.com/*',
|
||||
'https://gitlab.com/*',
|
||||
'https://www.reddit.com/*',
|
||||
'https://old.reddit.com/*',
|
||||
'https://stackoverflow.com/*',
|
||||
'https://pastebin.com/*',
|
||||
// Local
|
||||
'http://localhost/*',
|
||||
'http://127.0.0.1/*',
|
||||
];
|
||||
|
||||
@@ -609,7 +609,7 @@ function renderDomains() {
|
||||
const domains = settings.customDomains || [];
|
||||
|
||||
if (domains.length === 0) {
|
||||
safeHTML(list, '<div style="text-align:center;color:#9ca3af;padding:12px;font-size:13px">No custom domains. Built-in sites (Claude, ChatGPT, Grok, Gemini, localhost) are always active.</div>');
|
||||
safeHTML(list, '<div style="text-align:center;color:#9ca3af;padding:12px;font-size:13px">No custom domains. Built-in sites (Claude, ChatGPT, Gemini, Grok, Perplexity, Copilot, DeepSeek, HuggingChat, Poe, GitHub, GitLab, Reddit, Stack Overflow, Pastebin, localhost) are always active.</div>');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user