mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2024-12-21 23:44:32 +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.
|
||||
|
||||
[FAQ](https://libredirect.github.io/faq.html)
|
||||
|
||||
## Donate
|
||||
[![Liberapay](./img/liberapay.svg)](https://liberapay.com/LibRedirect)
|
||||
[![Patreon](./img/patreon.svg)](https://patreon.com/LibRedirect)
|
||||
[![Buy me a coffee](./img/bmc.svg)](https://www.buymeacoffee.com/libredirect)
|
||||
|
||||
BTC: [bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q](bitcoin:bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q)\
|
||||
BCH: [qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8](bitcoincash:qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8)\
|
||||
ETH: [0x896E5796Da76E49A400A9186E1c459CD2C64b4E8](ethereum:0x896E5796Da76E49A400A9186E1c459CD2C64b4E8)\
|
||||
XMR: [4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR](monero:4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR)
|
||||
|
||||
[FAQ](https://libredirect.github.io/faq.html)
|
||||
BTC: bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q\
|
||||
BCH: qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8\
|
||||
ETH: 0x896E5796Da76E49A400A9186E1c459CD2C64b4E8\
|
||||
XMR: 4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR
|
||||
|
||||
## Mirror Repos
|
||||
[![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)
|
||||
|
||||
## Translate
|
||||
[![Weblate](./img/weblate.svg)](https://hosted.weblate.org/projects/libredirect/extension)
|
||||
|
||||
## Development
|
||||
### Install Dependencies
|
||||
[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() {
|
||||
return new Promise(resolve => {
|
||||
browser.storage.local.get(null, r => {
|
||||
const old = encodeURIComponent(JSON.stringify(r))
|
||||
browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) });
|
||||
if (r.theme) {
|
||||
const old = encodeURIComponent(JSON.stringify(r))
|
||||
browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) });
|
||||
}
|
||||
resolve();
|
||||
})
|
||||
})
|
||||
|
@ -87,16 +87,21 @@ importSettingsElement.addEventListener("change",
|
||||
await redditHelper.pasteTedditCookies();
|
||||
|
||||
await tiktokHelper.pasteProxiTokCookies();
|
||||
|
||||
|
||||
location.reload();
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
} else
|
||||
} else {
|
||||
console.log('incompatible settings');
|
||||
importError()
|
||||
}
|
||||
}
|
||||
reader.onerror = error => importError();
|
||||
reader.onerror = error => {
|
||||
console.log('error', error);
|
||||
importError()
|
||||
};
|
||||
}
|
||||
);
|
||||
function importError() {
|
||||
|
Loading…
Reference in New Issue
Block a user