mirror of
https://github.com/v2fly/domain-list-community.git
synced 2026-03-06 19:50:43 +07:00
Compare commits
6 Commits
2026020314
...
2026020512
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
027b8b3409 | ||
|
|
535dc789b9 | ||
|
|
311b281000 | ||
|
|
bfb35d7b68 | ||
|
|
daf4c10d0c | ||
|
|
a188c2c058 |
@@ -33,9 +33,17 @@ type DomainList struct {
|
|||||||
func (d *DomainRule) domain2String() string {
|
func (d *DomainRule) domain2String() string {
|
||||||
var dstr strings.Builder
|
var dstr strings.Builder
|
||||||
dstr.Grow(len(d.Type) + len(d.Value) + 10)
|
dstr.Grow(len(d.Type) + len(d.Value) + 10)
|
||||||
fmt.Fprintf(&dstr, "%s:%s", d.Type, d.Value)
|
dstr.WriteString(d.Type)
|
||||||
if len(d.Attrs) != 0 {
|
dstr.WriteByte(':')
|
||||||
fmt.Fprintf(&dstr, ":@%s", strings.Join(d.Attrs, ",@"))
|
dstr.WriteString(d.Value)
|
||||||
|
for i, attr := range d.Attrs {
|
||||||
|
if i == 0 {
|
||||||
|
dstr.WriteByte(':')
|
||||||
|
} else {
|
||||||
|
dstr.WriteByte(',')
|
||||||
|
}
|
||||||
|
dstr.WriteByte('@')
|
||||||
|
dstr.WriteString(attr)
|
||||||
}
|
}
|
||||||
return dstr.String()
|
return dstr.String()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ include:cerebras
|
|||||||
include:comfy
|
include:comfy
|
||||||
include:cursor
|
include:cursor
|
||||||
include:elevenlabs
|
include:elevenlabs
|
||||||
|
include:github-copilot
|
||||||
include:google-deepmind
|
include:google-deepmind
|
||||||
include:groq
|
include:groq
|
||||||
include:huggingface
|
include:huggingface
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ include:pixiv
|
|||||||
include:plutotv
|
include:plutotv
|
||||||
include:pocketcasts
|
include:pocketcasts
|
||||||
include:primevideo
|
include:primevideo
|
||||||
|
include:radiko
|
||||||
include:roku
|
include:roku
|
||||||
include:showtimeanytime
|
include:showtimeanytime
|
||||||
include:sling
|
include:sling
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ yeshen.com
|
|||||||
51zmt.top
|
51zmt.top
|
||||||
# 广东南方新媒体
|
# 广东南方新媒体
|
||||||
aisee.tv
|
aisee.tv
|
||||||
|
# 动画巡礼
|
||||||
|
anitabi.cn
|
||||||
# 暴风影音
|
# 暴风影音
|
||||||
baofeng.com
|
baofeng.com
|
||||||
baofeng.net
|
baofeng.net
|
||||||
|
|||||||
1
data/dji
1
data/dji
@@ -2,6 +2,7 @@ dji.com
|
|||||||
dji.ink
|
dji.ink
|
||||||
dji.net
|
dji.net
|
||||||
djicdn.com
|
djicdn.com
|
||||||
|
djigate.com
|
||||||
djiits.com
|
djiits.com
|
||||||
djiops.com
|
djiops.com
|
||||||
djiservice.org
|
djiservice.org
|
||||||
|
|||||||
@@ -271,6 +271,8 @@ ldoceonline.com
|
|||||||
immersivetranslate.com # 沉浸式翻译 (国际版)
|
immersivetranslate.com # 沉浸式翻译 (国际版)
|
||||||
## OriginLab (Graphing for Science and Engineering)
|
## OriginLab (Graphing for Science and Engineering)
|
||||||
originlab.com
|
originlab.com
|
||||||
|
## OsmAnd
|
||||||
|
osmand.net
|
||||||
|
|
||||||
# Software development
|
# Software development
|
||||||
include:category-dev
|
include:category-dev
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
include:github-ads
|
include:github-ads
|
||||||
|
include:github-copilot
|
||||||
include:npmjs
|
include:npmjs
|
||||||
|
|
||||||
atom.io
|
atom.io
|
||||||
@@ -14,7 +15,6 @@ github.dev
|
|||||||
github.io
|
github.io
|
||||||
githubapp.com
|
githubapp.com
|
||||||
githubassets.com
|
githubassets.com
|
||||||
githubcopilot.com
|
|
||||||
githubhackathon.com
|
githubhackathon.com
|
||||||
githubnext.com
|
githubnext.com
|
||||||
githubpreview.dev
|
githubpreview.dev
|
||||||
|
|||||||
1
data/github-copilot
Normal file
1
data/github-copilot
Normal file
@@ -0,0 +1 @@
|
|||||||
|
githubcopilot.com
|
||||||
5
data/radiko
Normal file
5
data/radiko
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# radiko official access and streaming domains
|
||||||
|
|
||||||
|
radiko-cf.com
|
||||||
|
radiko.jp
|
||||||
|
smartstream.ne.jp
|
||||||
14
main.go
14
main.go
@@ -156,9 +156,17 @@ func parseEntry(line string) (Entry, error) {
|
|||||||
// Formated plain entry: type:domain.tld:@attr1,@attr2
|
// Formated plain entry: type:domain.tld:@attr1,@attr2
|
||||||
var plain strings.Builder
|
var plain strings.Builder
|
||||||
plain.Grow(len(entry.Type) + len(entry.Value) + 10)
|
plain.Grow(len(entry.Type) + len(entry.Value) + 10)
|
||||||
fmt.Fprintf(&plain, "%s:%s", entry.Type, entry.Value)
|
plain.WriteString(entry.Type)
|
||||||
if len(entry.Attrs) != 0 {
|
plain.WriteByte(':')
|
||||||
fmt.Fprintf(&plain, ":@%s", strings.Join(entry.Attrs, ",@"))
|
plain.WriteString(entry.Value)
|
||||||
|
for i, attr := range entry.Attrs {
|
||||||
|
if i == 0 {
|
||||||
|
plain.WriteByte(':')
|
||||||
|
} else {
|
||||||
|
plain.WriteByte(',')
|
||||||
|
}
|
||||||
|
plain.WriteByte('@')
|
||||||
|
plain.WriteString(attr)
|
||||||
}
|
}
|
||||||
entry.Plain = plain.String()
|
entry.Plain = plain.String()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user