Preparing for release v2.5.0 => v2.5.1
This commit is contained in:
parent
fff96565f7
commit
35e56d8faa
|
@ -1,6 +1,6 @@
|
|||
## Linux
|
||||
|
||||
- Download the latest `.crx` file: [libredirect-2.5.0.crx](https://github.com/libredirect/libredirect/releases/download/v2.5.0/libredirect-2.5.0.crx)
|
||||
- Download the latest `.crx` file: [libredirect-2.5.1.crx](https://github.com/libredirect/libredirect/releases/download/v2.5.1/libredirect-2.5.1.crx)
|
||||
- Open `chrome://extensions`
|
||||
- Enable `dev mode`
|
||||
- Refresh the page
|
||||
|
@ -12,11 +12,11 @@ Updates are automatic
|
|||
|
||||
## Windows, MacOS
|
||||
|
||||
- Download the latest release [libredirect-2.5.0.zip](https://github.com/libredirect/libredirect/releases/download/v2.5.0/libredirect-2.5.0.zip)
|
||||
- Download the latest release [libredirect-2.5.1.zip](https://github.com/libredirect/libredirect/releases/download/v2.5.1/libredirect-2.5.1.zip)
|
||||
- Unzip it with `Auto detect subfolder`
|
||||
- Open `chrome://extensions`
|
||||
- Enable `dev mode`
|
||||
- Click `Load unpacked`. Select and Open `libredirect-2.5.0/`
|
||||
- Click `Load unpacked`. Select and Open `libredirect-2.5.1/`
|
||||
|
||||
https://user-images.githubusercontent.com/40805353/159987051-8be73cd3-3fdf-4dd0-99d4-8886674fbdb6.mp4
|
||||
|
||||
|
|
|
@ -539,6 +539,38 @@ function reverse(url) {
|
|||
})
|
||||
}
|
||||
|
||||
const defaultInstances = {
|
||||
'invidious': ['https://inv.vern.cc'],
|
||||
'piped': ['https://pipedapi-libre.kavin.rocks'],
|
||||
'pipedMaterial': ['https://piped-material.xn--17b.net'],
|
||||
'cloudtube': ['https://tube.cadence.moe'],
|
||||
'proxiTok': ['https://proxitok.pabloferreiro.es'],
|
||||
'send': ['https://send.vis.ee'],
|
||||
'nitter': ['https://nitter.net'],
|
||||
'libreddit': ['https://libreddit.spike.codes'],
|
||||
'teddit': ['https://teddit.net'],
|
||||
'scribe': ['https://scribe.rip'],
|
||||
'libMedium': ['https://md.vern.cc'],
|
||||
'quetre': ['https://quetre.iket.me'],
|
||||
'libremdb': ['https://libremdb.iket.me'],
|
||||
'simplyTranslate': ['https://simplytranslate.org'],
|
||||
'lingva': ['https://lingva.ml'],
|
||||
'searxng': ['https://sx.vern.cc'],
|
||||
'rimgo': ['https://rimgo.vern.cc'],
|
||||
'librarian': ['https://lbry.vern.cc'],
|
||||
'beatbump': ['https://beatbump.ml'],
|
||||
'hyperpipe': ['https://hyperpipe.surge.sh'],
|
||||
'facil': [' https://facilmap.org '],
|
||||
'osm': ['https://www.openstreetmap.org'],
|
||||
'breezeWiki': ['https://breezewiki.com'],
|
||||
'neuters': ['https://neuters.de'],
|
||||
'dumb': ['https://dm.vern.cc'],
|
||||
'ruralDictionary': ['https://rd.vern.cc'],
|
||||
'anonymousOverflow': ['https://code.whatever.social'],
|
||||
'biblioReads': ['https://biblioreads.ml'],
|
||||
'wikiless': ['https://wikiless.org'],
|
||||
}
|
||||
|
||||
function initDefaults() {
|
||||
return new Promise(resolve => {
|
||||
browser.storage.local.clear(async () => {
|
||||
|
@ -562,35 +594,7 @@ function initDefaults() {
|
|||
options['theme'] = "detect"
|
||||
options['popupServices'] = ["youtube", "twitter", "tiktok", "imgur", "reddit", "quora", "translate", "maps"]
|
||||
|
||||
options['invidious'] = ['https://inv.vern.cc']
|
||||
options['piped'] = ['https://pipedapi-libre.kavin.rocks']
|
||||
options['pipedMaterial'] = ['https://piped-material.xn--17b.net']
|
||||
options['cloudtube'] = ['https://tube.cadence.moe']
|
||||
options['proxiTok'] = ['https://proxitok.pabloferreiro.es']
|
||||
options['send'] = ['https://send.vis.ee']
|
||||
options['nitter'] = ['https://nitter.net']
|
||||
options['libreddit'] = ['https://libreddit.spike.codes']
|
||||
options['teddit'] = ['https://teddit.net']
|
||||
options['scribe'] = ['https://scribe.rip']
|
||||
options['libMedium'] = ['https://md.vern.cc']
|
||||
options['quetre'] = ['https://quetre.iket.me']
|
||||
options['libremdb'] = ['https://libremdb.iket.me']
|
||||
options['simplyTranslate'] = ['https://simplytranslate.org']
|
||||
options['lingva'] = ['https://lingva.ml']
|
||||
options['searxng'] = ['https://sx.vern.cc']
|
||||
options['rimgo'] = ['https://rimgo.vern.cc']
|
||||
options['librarian'] = ['https://lbry.vern.cc']
|
||||
options['beatbump'] = ['https://beatbump.ml']
|
||||
options['hyperpipe'] = ['https://hyperpipe.surge.sh']
|
||||
options['facil'] = [' https://facilmap.org ']
|
||||
options['osm'] = ['https://www.openstreetmap.org']
|
||||
options['breezeWiki'] = ['https://breezewiki.com']
|
||||
options['neuters'] = ['https://neuters.de']
|
||||
options['dumb'] = ['https://dm.vern.cc']
|
||||
options['ruralDictionary'] = ['https://rd.vern.cc']
|
||||
options['anonymousOverflow'] = ['https://code.whatever.social']
|
||||
options['biblioReads'] = ['https://biblioreads.ml']
|
||||
options['wikiless'] = ['https://wikiless.org']
|
||||
options = { ...options, ...defaultInstances }
|
||||
|
||||
browser.storage.local.set({ options },
|
||||
() => resolve()
|
||||
|
@ -636,7 +640,7 @@ function upgradeOptions() {
|
|||
]
|
||||
}
|
||||
else {
|
||||
options[frontend] = []
|
||||
options[frontend] = defaultInstances[frontend]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -664,9 +668,9 @@ function processUpdate() {
|
|||
|
||||
for (const frontend in config.services[service].frontends) {
|
||||
if (options[frontend] === undefined && config.services[service].frontends[frontend].instanceList) {
|
||||
options[frontend] = []
|
||||
options[frontend] = defaultInstances[frontend]
|
||||
}
|
||||
else if (frontend in options && frontend in !config.services[service].frontends) {
|
||||
else if (frontend in options && !(frontend in config.services[service].frontends)) {
|
||||
delete options[frontend]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,8 +17,9 @@ browser.runtime.onInstalled.addListener(async details => {
|
|||
else if (details.reason == "update") {
|
||||
if (details.previousVersion == '2.3.4') {
|
||||
await servicesHelper.upgradeOptions()
|
||||
} else {
|
||||
await servicesHelper.processUpdate()
|
||||
}
|
||||
// await servicesHelper.processUpdate()
|
||||
}
|
||||
browser.runtime.openOptionsPage()
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
||||
<app appid='oladmjdebphlnjjcnomfhhbfdldiimaf'>
|
||||
<updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v2.5.0/libredirect-2.5.0.crx' version='2.5.0' />
|
||||
<updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v2.5.1/libredirect-2.5.1.crx' version='2.5.1' />
|
||||
</app>
|
||||
</gupdate>
|
||||
|
|
Loading…
Reference in New Issue