From 2848dea225cb62d59003d08cbf7a8dd4a2979086 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 24 Feb 2024 16:05:00 +0100 Subject: [PATCH] Update instance list --- main.go | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/main.go b/main.go index 35a8b12..2ca400c 100644 --- a/main.go +++ b/main.go @@ -16,31 +16,7 @@ var ( // - https://github.com/zedeus/nitter/wiki/Instances // - https://status.d420.de/ NitterClearnetUrls = []string{ - "nitter.cz", - "nitter.woodland.cafe", - "nitter.unixfox.eu", "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 = 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 += "Click [here](https://github.com/zedeus/nitter) for more information._" cId, err := sn.CreateComment(item.Id, comment)