102 Commits

Author SHA1 Message Date
Nils Maier
9c159d5d24 Do not wait for the scheduler on startup 2019-09-04 14:15:06 +02:00
Nils Maier
42ccfd5dc5 Do not abuse serverName to store browserName 2019-09-04 14:15:05 +02:00
Nils Maier
dabf7f8a28 Prerolling and mime detection for some downloads
Only attempt this for a limited subset of downloads for now.
Related #45
2019-09-04 14:15:05 +02:00
Nils Maier
9cac48f439 Make all tabs work again 2019-09-04 14:15:05 +02:00
Nils Maier
ef6bc840d8 Do not trace 2019-09-04 14:15:00 +02:00
Nils Maier
5a4b8143b2 Remove some any-types 2019-09-03 18:18:07 +02:00
Nils Maier
56098a382e Actually get most recent window 2019-09-03 13:23:00 +02:00
Nils Maier
4d48a2c395 Implement locale switcher 2019-09-03 08:24:29 +02:00
Nils Maier
3cf30aaf08 Use _ version of language codes
Closes #50
2019-09-03 08:24:29 +02:00
Nils Maier
164aa99eca Initial Chrome support
Part of #35
2019-09-02 18:05:06 +02:00
Nils Maier
0a9155dcec Implement system icons
Closes #44
2019-09-02 14:52:14 +02:00
Nils Maier
392681c1b7 Fix multi-filters
Closes #43
2019-09-02 13:33:38 +02:00
Nils Maier
d4024a16ad Delay updates while queue is running
Closes #42
2019-09-02 13:16:39 +02:00
Nils Maier
28e6866db8 Use currentWindow instead of WINDOW_ID_CURRENT 2019-09-02 04:06:28 +02:00
Nils Maier
7185964649 emulate must use correct window
Closes #41
2019-09-02 04:02:50 +02:00
Nils Maier
7a71ae5f37 Also split ui locales by _ 2019-09-02 00:24:11 +02:00
Nils Maier
4d72ac4534 Notifications galore 2019-08-31 23:08:12 +02:00
Nils Maier
98ebb160f9 Silence a console.log 2019-08-29 19:37:09 +02:00
Nils Maier
d1cc406f05 select: frontend/backend mappings were out of sync
Closes #27
2019-08-29 19:36:06 +02:00
Nils Maier
a425a786ef Do not log "custom" 2019-08-29 08:14:22 +02:00
Nils Maier
fe61f6176c Load custom translations
Part of #14
2019-08-27 03:02:17 +02:00
Nils Maier
48bde9cfdb Create contextual menus first 2019-08-26 20:43:34 +02:00
Nils Maier
29fd59c8fd Increase recent lists to 15
Because why not?!
Also closes #15
2019-08-26 19:51:30 +02:00
Nils Maier
544b7d522c less of any 2019-08-26 19:50:06 +02:00
Nils Maier
976c57c043 i18n: rely less on exceptions 2019-08-26 02:57:06 +02:00
Nils Maier
572bab27a0 menu handlers are not necessary promises 2019-08-26 02:40:54 +02:00
Nils Maier
8235af22db Implement own locale loader
Why?
* Because i18n sucks multi-browser, especially on Chrome.
* What's more, this will allow overlaying "incomplete" locales with
  missing strings over the base locale and get a semi-translated one,
  which probably is better than nothing.
* Additionally we kinda need that implementation anyway for node-based
  tests.
* Also, while not currently implemented, it could allow (hot) reloading
  of locales, or loading external ones, which would help translators,
  or providing an option to the user to choose a locale.
* And finally, not calling i18n will avoid the "context switch" into
  browserland.

Some implementation details:
* Before code can use a locale, it has to be loaded. Sadly sync loading
  is not really supported. So `await locale` or `await localize`.
* Background force reloads locales right now, and caches them in
  localStorage. Windows will look into localStorage for that cache.
* The locale loader will not verify locales other than some rudimentary
  checks. It is assumed that shipped locales where verified before
  check-in.
2019-08-26 02:37:27 +02:00
Nils Maier
c7c111e1c0 Option to hide contexts
Closes #4
2019-08-25 23:22:47 +02:00
Nils Maier
a9a811d96b Oops 2019-08-25 23:14:54 +02:00
Nils Maier
801eaa819b Egalize menu and popup 2019-08-25 23:01:36 +02:00
Nils Maier
d6539c5f96 Add .custom to newly created filters too 2019-08-25 22:31:20 +02:00
Nils Maier
a89acad0c9 Proper types for localize and $ 2019-08-25 22:30:07 +02:00
Nils Maier
af8b05d20c Allow the browserAction button to be turbo again
Closes #13
2019-08-25 21:31:38 +02:00
Nils Maier
176060183e Select the proper turbo list 2019-08-25 20:55:54 +02:00
Nils Maier
26cd8e8a00 Actually store the last-type 2019-08-25 20:55:44 +02:00
Nils Maier
a9df98c2f6 Overhault fast filter matching
Closes #11
2019-08-25 20:55:26 +02:00
Nils Maier
112d37deb0 Reduce load size of popup 2019-08-25 14:27:54 +02:00
Nils Maier
2f282d3a4b Implement All Tabs actions
Closes #3
2019-08-24 07:30:34 +02:00
Nils Maier
7bfffd7598 Rely on startNext to invoke maybeNotifyFinished
Closes #6
2019-08-24 06:34:37 +02:00
Nils Maier
545d78ad61 Implement a popup menu for the browserAction
Closes #10
2019-08-24 06:28:18 +02:00
Nils Maier
0463471704 It is Port.sender.id these days 2019-08-24 02:52:48 +02:00
Nils Maier
34ea21b3ea memoize getMessage correctly 2019-08-24 02:52:23 +02:00
Nils Maier
d3c9f8bc89 send Referer-s
Clsoes #7
2019-08-24 02:52:04 +02:00
Nils Maier
4236195ccf Remove the dta tag header 2019-08-24 00:59:45 +02:00
Nils Maier
10ff6f1c11 Set error text when failure to fly 2019-08-24 00:56:41 +02:00
Nils Maier
3eaa7ed822 Add a default mask with a subdirectory
As a clue that this is supported. See #2
2019-08-22 00:40:04 +02:00
Nils Maier
83204074ce Special path sanitizer for Windows 2019-08-21 16:34:30 +02:00
Nils Maier
b0ba8073fc Set error string when failing early 2019-08-21 16:33:07 +02:00
Nils Maier
6b07fa2d08 Handle missing-on-init 2019-08-21 16:15:31 +02:00
Nils Maier
99f7bfcf0a move missing checks into init 2019-08-21 15:46:39 +02:00