Commit Graph

2149 Commits

Author SHA1 Message Date
DecentM
aac5e12d17
fix: validate event origin from allowedOrigins in loop 2018-02-15 05:51:33 +01:00
DecentM
1cc4cc7f21
fix: align if statement indentations 2018-02-15 05:51:33 +01:00
DecentM
46823a59e8
feature: add orphan check to install-hook-openusercss 2018-02-15 05:51:32 +01:00
DecentM
6853158790
refactor: remove unnecessary arrow function wrap
- add installed handler
2018-02-15 05:51:32 +01:00
DecentM
90399c53a8
feature: only try sending events if the origins match 2018-02-15 05:51:32 +01:00
DecentM
e8caa02e1a
refactor: fix issues in review
- refactor API connector
- unquote object keys
2018-02-15 05:51:32 +01:00
DecentM
aa7af11dd4
feature: create API helpers
This contains event listeners for oucThemeById and oucUserById
2018-02-15 05:51:30 +01:00
DecentM
f420f14dd3
feature: add installed query event listener and response 2018-02-15 05:50:50 +01:00
DecentM
fa2a014120
fix: the enabled prop isn't actually needed 2018-02-15 05:50:50 +01:00
DecentM
5d6b106145
feature(openusercss-hook): add event based install functionality 2018-02-15 05:50:50 +01:00
DecentM
b65896294e
refactor(opnusercss-hook): modularize logic 2018-02-15 05:50:50 +01:00
DecentM
b9e6b660a7
feature: event origin whitelisting 2018-02-15 05:50:50 +01:00
DecentM
aa31f53448
feature: add initial openusercss handshake 2018-02-15 05:50:46 +01:00
narcolepticinsomniac
8821c2f23f Prevent traditional button active state from applying to usercss install button (#346) 2018-02-14 05:58:27 +03:00
tophf
e3d1c6588d prefill new style name with the domain/hostname
implements #344
2018-02-14 05:53:35 +03:00
narcolepticinsomniac
c1b47e4b23
Style non-select filter labels to match
Non-select filter labels and their contents were misaligned. They were also shorter with lighter hover backgrounds. Everything should match up now. There's only one currently, but I used general selectors which should work in case any new ones are added.
2018-02-13 16:44:21 -05:00
tophf
e84afd9a20 fix a copypaste error 2018-02-03 06:31:43 +03:00
tophf
4772178689 bump version 2018-02-02 09:04:47 +03:00
tophf
ddc6c3e1c3 update locales 2018-02-02 09:04:26 +03:00
tophf
7a479edc56 more consistent focus/scroll behavior of global search
* keep page scroll position on Esc/close
* focus the match on Enter
2018-02-02 09:04:25 +03:00
tophf
32f0f4bd7a preserve page scroll position after [de]beautification 2018-02-01 23:51:30 +03:00
tophf
f6991c4f57 fallback to 'path' when Canvas is blocked in FF
fixes #335
2018-01-30 19:42:30 +03:00
tophf
95a24cd29b catch fatal parsing errors 2018-01-30 18:59:28 +03:00
tophf
02989edb05 eat unclosed comments 2018-01-30 18:59:28 +03:00
tophf
90aacefff8 ignore @charset when deciding if section is empty
fixes #337
2018-01-30 18:59:28 +03:00
tophf
ca5f8c941b don't refresh own tabs twice
fixes #336
2018-01-29 04:37:24 +03:00
tophf
4719088d39 use (i) icon in options for the extra info
#334
2018-01-24 23:22:27 +03:00
tophf
545f0a3622 bump version 2018-01-24 03:48:00 +03:00
tophf
10b82ae7cc actually import settings from sync
fixes #331
2018-01-24 03:47:26 +03:00
tophf
5b4ecfc3e4 fix click area of filter checkboxes
#332
2018-01-24 03:26:52 +03:00
tophf
b03d9030e4 bump version 2018-01-23 18:01:14 +03:00
tophf
d94ded8d94 update locales 2018-01-23 18:00:20 +03:00
tophf
75a9ce4696 don't overwrite url in stylus-iframe attr with "true" 2018-01-20 16:26:13 +03:00
tophf
cd794b981b bump version 2018-01-20 02:32:19 +03:00
tophf
bc2da3f66a prevent hanging when parent frame is absent 2018-01-20 02:28:20 +03:00
tophf
a3962b7adf put https://top.site.origin in "stylus-iframe" attr 2018-01-19 15:37:26 +03:00
tophf
75aee2085a load storage-util in all pages
prefs::doSyncSet uses it now, there'll be more in the future when we convert all direct chrome.storage calls
2018-01-19 15:14:09 +03:00
tophf
4dc6d56533 bump version 2018-01-18 20:42:31 +03:00
tophf
1c0cd2da9e show color swatches for rgb/hsl with unary + - in numbers 2018-01-16 15:11:07 +03:00
tophf
0fa391732b workaround for Chrome devtools bug (fixed in v65)
recreate the style element on style code change because older devtools inspector can't edit injected rules after we update textContent of an existing element
2018-01-15 19:43:35 +03:00
tophf
0f8bca03b8 fixup eaed0de4: don't enable livepreview for unsaved code 2018-01-15 19:16:48 +03:00
tophf
100f7716fd bump version 2018-01-14 18:36:16 +03:00
tophf
efbbe147e4 update locales 2018-01-14 18:36:02 +03:00
tophf
4493c9e9f0 don't double-process 'styleUpdated' in manager 2018-01-14 18:18:08 +03:00
tophf
dc1cd890ee notify event subscribers when toggling the style via Alt-Enter 2018-01-14 17:40:09 +03:00
tophf
72e0f5fbf5 update refreshAllTabs cache and icon on disabling livepreview 2018-01-14 17:32:25 +03:00
tophf
823926a025 fix getStyleAtPos() for pos === EOL 2018-01-14 17:11:00 +03:00
tophf
3c15521fc2 tweak autocomplete helper
* use the faster getStyleAtPos
* autocomplete !important on typing !
* don't autocomplete hex colors
2018-01-14 17:10:54 +03:00
tophf
eaed0de486 init autocomplete/blur/focus for usercss in a common hook 2018-01-14 15:57:29 +03:00
tophf
b42dfc8300 fixup bb34538d: decrement styles.length on delete 2018-01-14 15:40:36 +03:00