69 | {#if params.get("message") == "disabled"}
70 |
71 |
You disabled redirections for this service
72 |
82 |
83 | {:else if params.get("message") == "no_instance"}
84 |
85 |
You have no instance selected for this frontend
86 |
96 |
97 | {/if}
98 |
99 | {:else}
100 | Loading...
101 | {/if}
102 |
103 |
135 |
--------------------------------------------------------------------------------
/src/pages/messages_src/main.js:
--------------------------------------------------------------------------------
1 | import App from "./App.svelte"
2 |
3 | const app = new App({
4 | target: document.body,
5 | })
6 |
7 | export default app
8 |
--------------------------------------------------------------------------------
/src/pages/messages_src/stores.js:
--------------------------------------------------------------------------------
1 | import { writable } from "svelte/store"
2 |
3 | export const options = writable(null)
4 | export const config = writable(null)
5 | export const page = writable("general")
6 |
--------------------------------------------------------------------------------
/src/pages/options/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Loading...
58 | {/if}
59 |
60 |
102 |
--------------------------------------------------------------------------------
/src/pages/options_src/General/Exceptions.svelte:
--------------------------------------------------------------------------------
1 |
58 |
59 |
63 |
64 |
65 | {
70 | if (e.key === "Enter") addException()
71 | }}
72 | />
73 |
80 |
81 |
84 |
85 |
86 |
87 | {#each [..._options.exceptions.url, ..._options.exceptions.regex] as exception}
88 |
89 | {exception}
90 |
93 |
94 |
95 | {/each}
96 |
97 |
98 |
99 |
111 |
--------------------------------------------------------------------------------
/src/pages/options_src/General/General.svelte:
--------------------------------------------------------------------------------
1 |
43 |
44 | Loading...
51 | {/if}
52 |
53 |
79 |
--------------------------------------------------------------------------------
/src/pages/popup_src/components/Row.svelte:
--------------------------------------------------------------------------------
1 |
29 |
33 | browser.tabs.create({ url: _config.services[serviceKey].url }, () => {
34 | window.close()
35 | })}
36 | >
37 |
38 |
39 |
40 |
41 | {
46 | _options[serviceKey].enabled = e.target.checked
47 | options.set(_options)
48 | }}
49 | />
50 |
53 | browser.tabs.update({ url: await servicesHelper.switchInstance(url, serviceKey) }, () => {
54 | window.close()
55 | })}
56 | />
57 |
60 | browser.tabs.create({ url: browser.runtime.getURL(`pages/options/index.html#services:${serviceKey}`) }, () => {
61 | window.close()
62 | })}
63 | />
64 |
65 |
66 |
67 |
82 |
--------------------------------------------------------------------------------
/src/pages/popup_src/main.js:
--------------------------------------------------------------------------------
1 | import App from "./App.svelte"
2 |
3 | const app = new App({
4 | target: document.body,
5 | })
6 |
7 | export default app
8 |
--------------------------------------------------------------------------------
/src/pages/popup_src/stores.js:
--------------------------------------------------------------------------------
1 | import { writable } from "svelte/store"
2 |
3 | export const options = writable(null)
4 | export const config = writable(null)
5 | export const page = writable("general")
6 |
--------------------------------------------------------------------------------
/src/updates/updates.xml:
--------------------------------------------------------------------------------
1 |
2 |