mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2024-12-22 07:55:34 +01:00
Adding weblate. Changing small things
This commit is contained in:
parent
f5f3571937
commit
556f537f70
15
README.md
15
README.md
@ -37,22 +37,25 @@ Send Files => [Send](https://github.com/timvisee/send)
|
|||||||
|
|
||||||
**Note**: The Extension will be using random instances by default. You can modify this and add custom instances too.
|
**Note**: The Extension will be using random instances by default. You can modify this and add custom instances too.
|
||||||
|
|
||||||
|
[FAQ](https://libredirect.github.io/faq.html)
|
||||||
|
|
||||||
## Donate
|
## Donate
|
||||||
[![Liberapay](./img/liberapay.svg)](https://liberapay.com/LibRedirect)
|
[![Liberapay](./img/liberapay.svg)](https://liberapay.com/LibRedirect)
|
||||||
[![Patreon](./img/patreon.svg)](https://patreon.com/LibRedirect)
|
[![Patreon](./img/patreon.svg)](https://patreon.com/LibRedirect)
|
||||||
[![Buy me a coffee](./img/bmc.svg)](https://www.buymeacoffee.com/libredirect)
|
[![Buy me a coffee](./img/bmc.svg)](https://www.buymeacoffee.com/libredirect)
|
||||||
|
|
||||||
BTC: [bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q](bitcoin:bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q)\
|
BTC: bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q\
|
||||||
BCH: [qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8](bitcoincash:qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8)\
|
BCH: qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8\
|
||||||
ETH: [0x896E5796Da76E49A400A9186E1c459CD2C64b4E8](ethereum:0x896E5796Da76E49A400A9186E1c459CD2C64b4E8)\
|
ETH: 0x896E5796Da76E49A400A9186E1c459CD2C64b4E8\
|
||||||
XMR: [4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR](monero:4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR)
|
XMR: 4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR
|
||||||
|
|
||||||
[FAQ](https://libredirect.github.io/faq.html)
|
|
||||||
|
|
||||||
## Mirror Repos
|
## Mirror Repos
|
||||||
[![GitHub](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/github.svg)](https://github.com/libredirect/libredirect/)
|
[![GitHub](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/github.svg)](https://github.com/libredirect/libredirect/)
|
||||||
[![Codeberg](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/codeberg.svg)](https://codeberg.org/LibRedirect/libredirect)
|
[![Codeberg](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/codeberg.svg)](https://codeberg.org/LibRedirect/libredirect)
|
||||||
|
|
||||||
|
## Translate
|
||||||
|
[![Weblate](./img/weblate.svg)](https://hosted.weblate.org/projects/libredirect/extension)
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
### Install Dependencies
|
### Install Dependencies
|
||||||
[Node.js](https://nodejs.org/) latest LTS is recommended
|
[Node.js](https://nodejs.org/) latest LTS is recommended
|
||||||
|
163
img/weblate.svg
Normal file
163
img/weblate.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 27 KiB |
@ -24,8 +24,10 @@ window.browser = window.browser || window.chrome;
|
|||||||
function openResetWarning() {
|
function openResetWarning() {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
browser.storage.local.get(null, r => {
|
browser.storage.local.get(null, r => {
|
||||||
const old = encodeURIComponent(JSON.stringify(r))
|
if (r.theme) {
|
||||||
browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) });
|
const old = encodeURIComponent(JSON.stringify(r))
|
||||||
|
browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) });
|
||||||
|
}
|
||||||
resolve();
|
resolve();
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -93,10 +93,15 @@ importSettingsElement.addEventListener("change",
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
} else
|
} else {
|
||||||
|
console.log('incompatible settings');
|
||||||
importError()
|
importError()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
reader.onerror = error => importError();
|
reader.onerror = error => {
|
||||||
|
console.log('error', error);
|
||||||
|
importError()
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
function importError() {
|
function importError() {
|
||||||
|
Loading…
Reference in New Issue
Block a user