tophf
e6e762505f
FF: don't style checkboxes in FF < 57
2017-12-03 07:07:43 +03:00
tophf
55564b543a
replace 'about:blank' tabs in openURL()
2017-12-03 02:44:20 +03:00
tophf
6704956b22
fixup 0de69e30: avoid passing falsy selectors to $()
2017-12-02 21:41:28 +03:00
tophf
0de69e306d
code refactor: add $.remove() and $$.remove()
2017-12-02 19:54:54 +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
a61ee5f093
fixup 362d9444: autoscroll manage page only during incremental search
2017-11-30 01:13:13 +03:00
tophf
6f0dd5e9b6
fixup 362d9444: never scroll manage page on toggling a visible entry
2017-11-30 00:54:40 +03:00
tophf
189342472e
manage: collapsible #options block
2017-11-29 19:27:31 +03:00
tophf
362d944428
manage: incremental search on typing + up/down arrows
2017-11-29 17:59:02 +03:00
tophf
cbe90272b9
silence some useless warnings in console
2017-11-29 17:59:01 +03:00
tophf
d660e6bd72
usercss validator: more precise error position report
2017-11-27 14:54:18 +03:00
tophf
13d7e30a75
usercss saving: display errors from mozparser in <pre>
2017-11-27 06:55:12 +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
0d80177691
accept xhr options in download(url, options)
...
also fixup d1964bbc: an error should reject with a code, not XHR's ProgressEvent
2017-11-26 21:09:29 +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
tophf
6aef6cdcd7
0 is a valid tab id
2017-11-25 20:24:15 +03:00
tophf
978e5ca9f0
sendMessage()
...
Promise mode [default]:
- rejects on receiving {__ERROR__: message} created by
background.js::onRuntimeMessage
- suppresses chrome.runtime.lastError
by browserAction.setText which lacks a callback param in chrome API
Callback mode:
- enabled by passing a second param
- doesn't suppress chrome.runtime.lastError
2017-11-25 18:00:38 +03:00
tophf
8f04e17d27
fix #223 - Android compatibility
2017-11-25 16:25:20 +03:00
tophf
d97337ded7
fix mozImport: properly discern comments outside of @-moz-document
2017-11-24 13:19:16 +03:00
tophf
479d95711b
linter report expands/collapses on click; the state is saved
2017-11-24 13:19:15 +03:00
tophf
fe3b1511f6
add "[x] only Usercss" filter in the manager
2017-11-24 13:19:12 +03:00
tophf
b99391887d
add colorpicker hotkey config icon [default: none]
...
* uses the last submitted color by default
* doesn't insert the default color until a change or the Enter key
* fix a few bugs in colorpicker introduced in the rewrite
2017-11-24 13:19:06 +03:00
tophf
37a62b0407
fix/rewrite/integrate colorpicker
...
* full rewrite of colorview.js to make it 10-100 times faster (render on demand via extendMode)
* full rewrite of colorpicker.js to simplify CSS
* automatic light/dark theme based on current color of the editor
* fixes, tweaks, speedups
* color spot will always be on the left of its text i.e. no line break on wrapping
* support #RRGGBBAA and #RGBA hex colors
* support "transparent" as rgba(0, 0, 0, 0)
* HEX/hex toggle
* fix HSLA regexp
* Esc/Enter key to close
* innerHTML -> textContent
* toggle the feature correctly
* fade out before autohiding
* always show alpha 1 like devtools does
* set cursor:pointer only on the clickable part of the sliders
* bigger color format switcher with a tooltip
* autofocus input on open, disable spellcheck
* try not to obscure the source color spot & text
* restore focus without scrolling
2017-11-20 15:19:58 +03:00
tophf
10ce4eeefa
prefs.subscribe: allow multiple listeners for one key
2017-11-19 15:55:35 +03:00
tophf
9689288bdc
new editor option: autoclose brackets/quotes [default: off]
2017-11-17 02:36:05 +03:00
tophf
0ed37c2667
popup: add side borders in Chrome 62+
...
fixes #226
2017-11-14 11:20:49 +03:00
tophf
94ed435e75
fixup d2b9b302: prevent setting version var to 'undefined'
2017-11-14 11:12:18 +03:00
tophf
3c08342e98
open usercss installer tab next to the source tab
2017-11-14 09:38:08 +03:00
tophf
417d6855ff
remove backtrackTo and trimNewLines from mozParser
...
* backtrackTo is not needed since 2e86c958
* trimNewLines does exactly the same as trim()
2017-11-14 09:24:38 +03:00
tophf
70a827b033
dd69e1e5 followup + handle empty at-values
...
see #235
2017-11-14 08:55:53 +03:00
tophf
1d463d7820
Merge pull request #134 from eight04/dev-user-css
...
Install styles from *.user.css file
2017-11-14 08:22:56 +03:00
eight
d02984ee2a
Add: expose parseError.index
2017-11-09 15:53:09 +08:00
eight
988a920a2f
Fix: use getOwnTab in closeCurrentTab
2017-11-09 14:11:26 +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
95e3ba13cd
Fix: newStyleInUsercss -> newStyleAsUsercss
2017-11-09 09:12:14 +08:00
eight
0c292c3150
Fix: download should throw status code
2017-11-09 09:12:14 +08:00
eight
5f5b06b10c
Fix: use FIREFOX variable
2017-11-09 09:12:14 +08:00
eight
2b614bdee2
Fix: dom.js is not a content script anymore
2017-11-09 09:12:13 +08:00
tophf
d2b9b30239
reliable userAgent detection in FF before 57
...
fixes #228
2017-11-08 06:53:36 +03: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