Refined update instances script. Bump version => 1.6.3

This commit is contained in:
ManeraKai 2022-04-14 01:42:54 +03:00
parent c86cc93b86
commit 0ac4e71445
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
5 changed files with 28 additions and 24 deletions

View File

@ -1,9 +1,9 @@
### Install in Chromium, Brave and Chrome ### Install in Chromium, Brave and Chrome
- Download the lastest release [libredirect-1.6.2.zip](https://github.com/libredirect/libredirect/releases/download/v1.6.2/libredirect-1.6.2.zip) - Download the lastest release [libredirect-1.6.3.zip](https://github.com/libredirect/libredirect/releases/download/v1.6.3/libredirect-1.6.3.zip)
- Unzip it with `Auto detect subfolder` - Unzip it with `Auto detect subfolder`
- Open `chrome://extensions` - Open `chrome://extensions`
- Enable `dev mode` - Enable `dev mode`
- Click `Load unpacked`. Select and Open `libredirect-1.6.2/` - Click `Load unpacked`. Select and Open `libredirect-1.6.3/`
Updates are automatic Updates are automatic
https://user-images.githubusercontent.com/40805353/159987051-8be73cd3-3fdf-4dd0-99d4-8886674fbdb6.mp4 https://user-images.githubusercontent.com/40805353/159987051-8be73cd3-3fdf-4dd0-99d4-8886674fbdb6.mp4

View File

@ -347,6 +347,7 @@
"https://searx.dresden.network", "https://searx.dresden.network",
"https://searx.everdot.org", "https://searx.everdot.org",
"https://searx.fossencdi.org", "https://searx.fossencdi.org",
"https://searx.gnous.eu",
"https://searx.gnu.style", "https://searx.gnu.style",
"https://searx.hardwired.link", "https://searx.hardwired.link",
"https://searx.josie.lol", "https://searx.josie.lol",
@ -417,7 +418,6 @@
"https://searx.ebnar.xyz", "https://searx.ebnar.xyz",
"https://searx.esmailelbob.xyz", "https://searx.esmailelbob.xyz",
"https://searx.fmac.xyz", "https://searx.fmac.xyz",
"https://searx.gnous.eu",
"https://searx.mha.fi", "https://searx.mha.fi",
"https://searx.namejeff.xyz", "https://searx.namejeff.xyz",
"https://searx.prvcy.eu", "https://searx.prvcy.eu",

View File

@ -9,12 +9,13 @@ from colorama import Fore, Back, Style
mightyList = {} mightyList = {}
def filterLastSlash(urlList): def filterLastSlash(urlList):
tmp = [] tmp = []
for i in urlList: for i in urlList:
if i.endswith('/'): if i.endswith('/'):
tmp.append(i[:-1]) tmp.append(i[:-1])
print(Fore.YELLOW + "filtered " + Style.RESET_ALL + i) print(Fore.YELLOW + "Fixed " + Style.RESET_ALL + i)
else: else:
tmp.append(i) tmp.append(i)
return tmp return tmp
@ -32,10 +33,11 @@ for instance in rJson:
elif instance[1]['type'] == 'onion': elif instance[1]['type'] == 'onion':
invidiousList['tor'].append(instance[1]['uri']) invidiousList['tor'].append(instance[1]['uri'])
mightyList['invidious'] = invidiousList mightyList['invidious'] = invidiousList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Invidious') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Invidious')
# ProxiTok # ProxiTok
r = requests.get('https://raw.githubusercontent.com/wiki/pablouser1/ProxiTok/Public-instances.md') r = requests.get(
'https://raw.githubusercontent.com/wiki/pablouser1/ProxiTok/Public-instances.md')
tmp = re.findall( tmp = re.findall(
r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text) r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text)
@ -45,18 +47,20 @@ proxiTokList['tor'] = []
for item in tmp: for item in tmp:
proxiTokList['normal'].append(item) proxiTokList['normal'].append(item)
mightyList['proxiTok'] = proxiTokList mightyList['proxiTok'] = proxiTokList
print('fetched ProxiTok') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'ProxiTok')
# Send # Send
r = requests.get('https://gitlab.com/timvisee/send-instances/-/raw/master/README.md') r = requests.get(
tmp = re.findall(r"- ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}", r.text) 'https://gitlab.com/timvisee/send-instances/-/raw/master/README.md')
tmp = re.findall(
r"- ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}", r.text)
sendList = {} sendList = {}
sendList['normal'] = [] sendList['normal'] = []
sendList['tor'] = [] sendList['tor'] = []
for item in tmp: for item in tmp:
sendList['normal'].append(item) sendList['normal'].append(item)
mightyList['send'] = sendList mightyList['send'] = sendList
print(Fore.GREEN +'fetched ' + Style.RESET_ALL + 'Send') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Send')
# Nitter # Nitter
r = requests.get('https://github.com/zedeus/nitter/wiki/Instances') r = requests.get('https://github.com/zedeus/nitter/wiki/Instances')
@ -82,7 +86,7 @@ for table in tables:
url = 'https://' + url url = 'https://' + url
nitterList['normal'].append(url) nitterList['normal'].append(url)
mightyList['nitter'] = nitterList mightyList['nitter'] = nitterList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Nitter') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Nitter')
# Bibliogram # Bibliogram
r = requests.get('https://bibliogram.pussthecat.org/api/instances') r = requests.get('https://bibliogram.pussthecat.org/api/instances')
@ -93,7 +97,7 @@ bibliogramList['tor'] = []
for item in rJson['data']: for item in rJson['data']:
bibliogramList['normal'].append(item['address']) bibliogramList['normal'].append(item['address'])
mightyList['bibliogram'] = bibliogramList mightyList['bibliogram'] = bibliogramList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Bibliogram') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Bibliogram')
# LibReddit # LibReddit
r = requests.get( r = requests.get(
@ -113,7 +117,7 @@ for item in tmp:
else: else:
libredditList['normal'].append(item) libredditList['normal'].append(item)
mightyList['libreddit'] = libredditList mightyList['libreddit'] = libredditList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'LibReddit') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'LibReddit')
# Teddit # Teddit
r = requests.get( r = requests.get(
@ -132,7 +136,7 @@ for item in rJson:
tedditList['tor'].append(onion) tedditList['tor'].append(onion)
mightyList['teddit'] = tedditList mightyList['teddit'] = tedditList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Teddit') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Teddit')
# Wikiless # Wikiless
@ -150,7 +154,7 @@ for item in rJson:
else: else:
wikilessList['normal'].append('https://' + item) wikilessList['normal'].append('https://' + item)
mightyList['wikiless'] = wikilessList mightyList['wikiless'] = wikilessList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Wikiless') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Wikiless')
# Scribe # Scribe
r = requests.get( r = requests.get(
@ -162,7 +166,7 @@ scribeList['tor'] = []
for item in rJson: for item in rJson:
scribeList['normal'].append(item) scribeList['normal'].append(item)
mightyList['scribe'] = scribeList mightyList['scribe'] = scribeList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Scribe') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Scribe')
# SimplyTranslate # SimplyTranslate
r = requests.get('https://simple-web.org/instances/simplytranslate') r = requests.get('https://simple-web.org/instances/simplytranslate')
@ -177,7 +181,7 @@ for item in r.text.strip().split('\n'):
simplyTranslateList['tor'].append('http://' + item) simplyTranslateList['tor'].append('http://' + item)
mightyList['simplyTranslate'] = simplyTranslateList mightyList['simplyTranslate'] = simplyTranslateList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'SimplyTranslate') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'SimplyTranslate')
# LinvgaTranslate # LinvgaTranslate
r = requests.get( r = requests.get(
@ -189,7 +193,7 @@ lingvaList['tor'] = []
for item in rJson: for item in rJson:
lingvaList['normal'].append(item) lingvaList['normal'].append(item)
mightyList['lingva'] = lingvaList mightyList['lingva'] = lingvaList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'LinvgaTranslate') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'LinvgaTranslate')
# SearX, SearXNG # SearX, SearXNG
@ -222,7 +226,7 @@ for item in rJson['instances']:
mightyList['searx'] = searxList mightyList['searx'] = searxList
mightyList['searxng'] = searxngList mightyList['searxng'] = searxngList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'SearX, SearXNG') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'SearX, SearXNG')
# Whoogle # Whoogle
r = requests.get( r = requests.get(
@ -240,7 +244,7 @@ for item in tmpList:
else: else:
whoogleList['normal'].append(item) whoogleList['normal'].append(item)
mightyList['whoogle'] = whoogleList mightyList['whoogle'] = whoogleList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Whoogle') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Whoogle')
# Rimgo # Rimgo
r = requests.get( r = requests.get(
@ -258,7 +262,7 @@ for item in rJson:
else: else:
rimgoList['normal'].append('https://' + item) rimgoList['normal'].append('https://' + item)
mightyList['rimgo'] = rimgoList mightyList['rimgo'] = rimgoList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Rimgo') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Rimgo')
# Peertube # Peertube
r = requests.get( r = requests.get(
@ -270,7 +274,7 @@ for k in rJson['data']:
myList.append('https://'+k['host']) myList.append('https://'+k['host'])
mightyList['peertube'] = myList mightyList['peertube'] = myList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Peertube') print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Peertube')
def isValid(url): # This code is contributed by avanitrachhadiya2155 def isValid(url): # This code is contributed by avanitrachhadiya2155

View File

@ -1,7 +1,7 @@
{ {
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"version": "1.6.2", "version": "1.6.3",
"manifest_version": 2, "manifest_version": 2,
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {

View File

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='oladmjdebphlnjjcnomfhhbfdldiimaf'> <app appid='oladmjdebphlnjjcnomfhhbfdldiimaf'>
<updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v1.6.1/libredirect-1.6.2.crx' version='1.6.2' /> <updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v1.6.1/libredirect-1.6.3.crx' version='1.6.3' />
</app> </app>
</gupdate> </gupdate>