tophf
807ea6aa70
extract colorconverter.js
2018-01-07 11:52:43 +03:00
tophf
e6d04fad6d
meta value starts after a name on the same line
2018-01-04 11:10:59 +03:00
tophf
6607455e8f
silence eslint; switch shirt-circuiting to single-line if/else
2017-12-18 10:27:50 +03:00
tophf
f40dc29497
add rudimentary reject/catch for mozParser inside worker
2017-12-07 08:41:52 +03:00
tophf
f337e18515
recognize usercss @updateURL
...
* installation URL is preferred - same behavior as before
* @updateURL is used when the style was drag'n'dropped into the manage page
because there's no real URL in this case
* install-usercss page shows the new update URL, which is set as per the above,
under the checkbox that enables updates
2017-12-06 22:35:19 +03:00
tophf
1273903b05
import usercss files drag'n'dropped into the manage page
2017-12-06 11:03:43 +03:00
tophf
f5516db8f4
off-load mozParser to a worker
2017-12-01 02:35:56 +03:00
tophf
9c3229717f
fixup d660e6bd: off-by-1 in parseStringUnquoted
2017-12-01 00:23:06 +03:00
tophf
d660e6bd72
usercss validator: more precise error position report
2017-11-27 14:54:18 +03:00
tophf
8d3fd9cc3b
fixups for a58f42de
(backtick) and 05677d93
(copy changed meta)
2017-11-27 03:19:31 +03:00
tophf
23efcb1db8
usercss: inform when the entire metadata block is missing/invalid
2017-11-26 21:13:54 +03:00
tophf
a58f42dee0
usercss editor: save as template when @name is empty
...
* reduced the flickering on page open
* show * in title for new styles
* align the values in the default template
* don't ask to save an untouched template
* don't spam the console with errors
* trivial code refactor and cosmetics
2017-11-26 18:43:40 +03:00
tophf
0e518bddcb
don't add usercss vars to empty sections
2017-11-26 04:52:14 +03:00
eight
d02984ee2a
Add: expose parseError.index
2017-11-09 15:53:09 +08:00
eight
7842ac752a
i18n: styleMetaErrorPreprocessor
2017-11-09 09:12:15 +08:00
eight
09e7d67dd2
Refactor: buildMeta
2017-11-09 09:12:15 +08:00
eight
a1b818f0c5
Fix: invalid default value for dropdown
2017-11-09 09:12:15 +08:00
eight
f86d0fc2e7
Fix: use sticky flag to avoid slicing string
2017-11-09 09:12:15 +08:00
eight
6358162bec
Fix: createOption in one line
2017-11-09 09:12:15 +08:00
eight
3a78681d9e
Fix: use .map to build varDef
2017-11-09 09:12:14 +08:00
eight
5a9f78e2ac
Add: key:label syntax in var select
2017-11-04 08:38:17 +08:00
eight
db1643e9b8
Refactor: pull out colorParser
2017-11-01 11:18:13 +08:00
eight
71a1c5e18a
Fix: old -> oldStyle
2017-11-01 11:17:01 +08:00
eight
f35fbb5b36
Fix: add styleMetaErrorSelectValueMismatch
2017-11-01 11:17:01 +08:00
eight
79b6266cf9
Fix: no new line before use strict
2017-11-01 11:13:57 +08:00
eight
62748b3b79
Fix: use arrow function for IIFE
2017-10-30 01:22:10 +08:00
eight
3906060aef
Add: multi-line string syntax
2017-10-09 02:45:26 +08:00
eight
4115705d8f
Fix: uso replace doesn't work on var select
2017-10-09 02:45:11 +08:00
eight
c0378e3f05
Fix: uso preprocessor infinite recursion
2017-10-09 02:44:17 +08:00
eight
77b6b6c857
Change: drop looseJSONParse
2017-10-09 01:03:51 +08:00
eight
a901ca29c1
Add: allow array in var select
2017-10-09 00:59:10 +08:00
eight
56e669fbcf
Fix: normalize version
2017-10-06 17:09:28 +08:00
eight
1e9ee786ea
Fix: normalize new line
2017-09-18 08:16:11 +08:00
eight
aed3698c74
Fix: looseJSONParse doesn't work on chrome 49
2017-09-16 10:14:24 +08:00
eight
a0495f466f
Change style structure
2017-09-16 10:14:23 +08:00
eight
eaf33afbe3
Rewrite parser, add uso preprocessor
2017-09-15 13:40:04 +08:00
eight
2506b957f8
Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injectScript
2017-09-12 23:19:16 +08:00
eight
23bd3e2cc7
fixup! Fix: err -> e
2017-09-12 20:48:03 +08:00
eight
6b1d6564fb
Fix: drop pad
2017-09-12 20:44:12 +08:00
eight
8e5ffd036f
Fix: use rgb() when alpha === 1
2017-09-12 20:29:09 +08:00
eight
a3f26d89b8
Fix: _parse -> parseRGB
2017-09-12 20:25:59 +08:00
eight
e3c3dcc1ff
Fix: use .map to build vars
2017-09-12 20:24:25 +08:00
eight
41f0174362
Add: valid url
2017-09-12 02:46:37 +08:00
eight
381ee88e94
Fix: i18n error message
2017-09-12 01:48:10 +08:00
eight
f305719db3
Fix: update progress
2017-09-12 01:23:32 +08:00
eight
8bc6986cac
Change: make unknown preprocessor throw
2017-09-12 00:10:27 +08:00
eight
3daff40acf
Add: vars validation
2017-09-09 19:29:35 +08:00
eight
4e0f4b34bb
Add: colorParser
2017-09-07 01:51:27 +08:00
eight
1f44898475
Add: adopt node-semver
2017-09-06 03:08:03 +08:00
eight
78264a1c34
Add: parse more metas, add variable type
2017-09-05 18:48:18 +08:00