Update instance list

This commit is contained in:
ekzyis 2024-02-24 16:05:00 +01:00
parent e17c83c621
commit 2848dea225
1 changed files with 0 additions and 44 deletions

44
main.go
View File

@ -16,31 +16,7 @@ var (
// - https://github.com/zedeus/nitter/wiki/Instances // - https://github.com/zedeus/nitter/wiki/Instances
// - https://status.d420.de/ // - https://status.d420.de/
NitterClearnetUrls = []string{ NitterClearnetUrls = []string{
"nitter.cz",
"nitter.woodland.cafe",
"nitter.unixfox.eu",
"nitter.privacydev.net", "nitter.privacydev.net",
"nitter.perennialte.ch",
"nitter.soopy.moe",
"nitter.1d4.us",
"nitter.adminforge.de",
}
NitterOnionUrls = []string{
"nitter7bryz3jv7e3uekphigvmoyoem4al3fynerxkj22dmoxoq553qd.onion",
"26oq3gioiwcmfojub37nz5gzbkdiqp7fue5kvye7d4txv4ny6fb4wwid.onion",
"vfaomgh4jxphpbdfizkm5gbtjahmei234giqj4facbwhrfjtcldauqad.onion",
"nitraeju2mipeziu2wtcrqsxg7h62v5y4eqgwi75uprynkj74gevvuqd.onion",
"codeine3hsqnnkb3dsu6ft4tunlomr3lmuml5hcoqmfkgiqfv2brdqqd.onion",
}
NitterI2PUrls = []string{
"axd6uavsstsrvstva4mzlzh4ct76rc6zdug3nxdgeitrzczhzf4q.b32.i2p",
"u6ikd6zndl3c4dsdq4mmujpntgeevdk5qzkfb57r4tnfeccrn2qa.b32.i2p",
"gseczlzmiv23p5vhsktyd7whquq2uy3c5fgkmdohh453qp3daoua.b32.i2p",
"tm4rwkeysv3zz3q5yacyr4rlmca2c4etkdobfvuqzt6vsfsu4weq.b32.i2p",
"vernzdedoxuflrrxc4vbatbkpjh4k22ecgiqgimdiif62onhagva.b32.i2p",
}
NitterLokinetUrls = []string{
"nitter.priv.loki/",
} }
) )
@ -106,26 +82,6 @@ func main() {
comment += fmt.Sprintf("[%s](%s) | ", nUrl, nitterLink) comment += fmt.Sprintf("[%s](%s) | ", nUrl, nitterLink)
} }
comment = strings.TrimRight(comment, "| ") comment = strings.TrimRight(comment, "| ")
comment += "\n\nTor: "
for _, nUrl := range NitterOnionUrls {
nitterLink := strings.Replace(item.Url, m[1], nUrl, 1)
nitterLink = strings.Replace(nitterLink, "https://", "http://", 1)
comment += fmt.Sprintf("[%s..%s](%s) | ", nUrl[:12], nUrl[len(nUrl)-12:], nitterLink)
}
comment = strings.TrimRight(comment, "| ")
comment += "\n\nI2P: "
for _, nUrl := range NitterI2PUrls {
nitterLink := strings.Replace(item.Url, m[1], nUrl, 1)
nitterLink = strings.Replace(nitterLink, "https://", "http://", 1)
comment += fmt.Sprintf("[%s..%s](%s) | ", nUrl[:12], nUrl[len(nUrl)-12:], nitterLink)
}
comment = strings.TrimRight(comment, "| ")
comment += "\n\nLokinet: "
for _, nUrl := range NitterLokinetUrls {
nitterLink := strings.Replace(item.Url, m[1], nUrl, 1)
nitterLink = strings.Replace(nitterLink, "https://", "http://", 1)
comment += fmt.Sprintf("[%s](%s)\n", nUrl, nitterLink)
}
comment += "\n\n_Nitter is a free and open source alternative Twitter front-end focused on privacy and performance. " comment += "\n\n_Nitter is a free and open source alternative Twitter front-end focused on privacy and performance. "
comment += "Click [here](https://github.com/zedeus/nitter) for more information._" comment += "Click [here](https://github.com/zedeus/nitter) for more information._"
cId, err := sn.CreateComment(item.Id, comment) cId, err := sn.CreateComment(item.Id, comment)