tophf
5df76b04e2
disable #save button right after opening a style
2017-12-25 02:26:01 +03:00
tophf
487bc77baa
actually replace 'usercssTemplate'
2017-12-24 01:50:53 +03:00
tophf
d0380f76c3
rewrite colorview to use CodeMirror::TextMarker
...
* solves all problems with glitching on selection etc.
* perceived performance is same due to lazy-processing
* colors unsupported in current browser are displayed internally as RGB
* the color text is highlighted in the editor when popup is invoked
2017-12-22 11:22:35 +03:00
tophf
31fd551264
trivial speed-ups for the single editor case
2017-12-18 10:27:50 +03:00
tophf
60a5fb96be
don't steal focus from the find input on page open
2017-12-11 08:32:11 +03:00
tophf
9c8e835a80
relay scrolling over #header to usercss code section
2017-12-07 04:36:46 +03:00
tophf
c0c60fb7a2
add a terse invocation syntax for $element and rename it to $create
2017-12-04 08:57:12 +03:00
tophf
8622dffe1e
usercss: make nextPrevMozDocument work with minified CSS
2017-12-03 04:05:35 +03:00
tophf
0e61de2920
edit.js: pull out hooks, sections, keymap help, beautify
...
just a simple preparation for a proper encapsulation in the future
2017-12-02 23:46:00 +03:00
tophf
fbd7526092
usercss: Alt-PgUp/PgDn go to prev/next @-moz-document
2017-12-02 18:29:12 +03:00
tophf
71f3dfbffd
usercss: don't relint on save; mode is an object once initialized
2017-11-30 20:42:52 +03:00
tophf
be633bf903
usercss: update URL and sessionStorage on replacing the style
2017-11-29 13:35:27 +03:00
tophf
260cbddae0
usercss: force-refresh codemirror on saving to repaint vars
2017-11-29 13:27:55 +03:00
tophf
493c1a65c0
worker for stylelint; hints in linter config popup
2017-11-28 20:07:37 +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
05677d93b3
usercss: use cm.changeGeneration() to detect dirtiness
2017-11-27 00:57:25 +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
74701810b7
remove cruft; silence eslint
2017-11-24 13:19:15 +03:00
tophf
479d95711b
linter report expands/collapses on click; the state is saved
2017-11-24 13:19:15 +03:00
tophf
a7b8286e4f
remove textareas
2017-11-24 13:19:11 +03:00
tophf
e1fae23927
init CM to usercss @preprocessor before setting the code
2017-11-24 13:19:11 +03:00
tophf
d767ad7a8c
autoLoadMode -> loadScript; chain to avoid flicker on load
2017-11-24 13:19:08 +03:00
tophf
786cde781d
pull out colorpicker-helper.js
2017-11-24 13:19:08 +03:00
tophf
7bae73bcb4
add onclick for colorpicker-settings icon in usercss mode
2017-11-24 13:19:07 +03:00
tophf
9f4066faa1
code cosmetics: remove redundant comments
2017-11-15 11:36:24 +03:00
tophf
5a9227ce8c
speedup usercss opening: combine a few ops
2017-11-15 11:35:54 +03:00
tophf
15c98bac9e
fixup 8ca7c363: focus() must be the last action
2017-11-15 11:33:37 +03:00
tophf
8ca7c36380
focus code on opening usercss editor
2017-11-15 04:27:33 +03:00
eight
a1c1eb328b
Add: draw line pointer for parsing error
2017-11-09 15:55:06 +08:00
eight
c2687573b3
Add setStyleDirty, refactor replaceStyle
2017-11-09 14:11:27 +08:00
eight
d93bf05f64
Fix: isWarm -> isTouched
2017-11-09 14:11:27 +08:00
eight
0d06f32735
Fix: updateMetas -> updateMeta
2017-11-09 09:12:13 +08:00
eight
eef17cc4f8
Fix: replaceMetas -> replaceMeta
2017-11-09 09:12:12 +08:00
eight
6a53ea423c
Refactor: pull out createAppliesToLineWidget
2017-11-01 11:17:00 +08:00
eight
8f642dc05c
Fix: drop innerHTML
2017-11-01 11:17:00 +08:00
eight
534803ccfd
Fix: isWarm
2017-11-01 11:17:00 +08:00
eight
79b6266cf9
Fix: no new line before use strict
2017-11-01 11:13:57 +08:00
eight
ce348d4f86
Fix: add isWarm flag to decide if the editor can be reloaded
2017-10-16 16:08:13 +08:00
eight
be4a896bc9
Fix: disable CSSLint option in stylus mode
2017-10-16 14:54:47 +08:00
eight
95902388a3
Fix: default linter hacks
2017-10-16 03:58:02 +08:00
eight
96a046f774
Fix: toggle style outside of the editor
2017-10-15 04:18:23 +08:00
eight
a1ca416ef2
Fix: miss makeLink global
2017-10-15 02:59:28 +08:00
eight
ce2a21451a
Add: usercss documentation link in the editor
2017-10-11 22:23:39 +08:00
eight
228057d231
Add: make source editor work with newly created style
2017-10-08 23:26:55 +08:00
eight
50a5bbecfa
Add: regexp tester in applies-to line widget
2017-10-08 22:03:27 +08:00
eight
fc51d806da
Fix: force using stylelint when editor mode is not css
2017-10-07 18:00:25 +08:00
eight
0f6de587ec
Add: remove/add button in applies-to widget
2017-10-06 01:10:45 +08:00
eight
b69b834949
Fix: handle editor.options.expanded
2017-10-04 16:47:56 +08:00
eight
24cd85688f
WIP: install page + editor
2017-09-24 16:54:21 +08:00
eight
a4e3fba968
Fix: source editor is not closed when style is removed
2017-09-19 08:51:57 +08:00
eight
1d829fe8f5
Fix: split up usercss logic from saveStyle
2017-09-18 11:34:12 +08:00
eight
a0495f466f
Change style structure
2017-09-16 10:14:23 +08:00
eight
4d6f856473
Revert "Add: scroll the editor when cursor is outside of the editor"
...
This reverts commit 5a9ac5ce7d
.
2017-09-16 07:33:12 +08:00
eight
a73493d5d2
Add: make applies-to line widget editable
2017-09-15 17:13:58 +08:00
eight
693a0483e3
Add: offset info
2017-09-15 15:36:44 +08:00
eight
ccb5f488e5
Fix: move to new format
2017-09-15 14:11:58 +08:00
eight
5a9ac5ce7d
Add: scroll the editor when cursor is outside of the editor
2017-09-15 07:47:44 +08:00
eight
70bbc08ee0
Add editor.appliesToLineWidget option
2017-09-14 09:58:22 +08:00
eight
37c83ce187
Fix: shouldn't contain new line
2017-09-14 09:10:11 +08:00
eight
b7b5888431
Fix: should't edit the style object directly returned from getStyles cache
2017-09-14 09:09:40 +08:00
eight
97fd2aa083
Compat: firefox
2017-09-13 23:35:34 +08:00
eight
411df8b051
Fix: no need to use $$ for element existence check
2017-09-13 20:39:42 +08:00
eight
d7f0e3c176
fixup! Fix: draw title
2017-09-13 17:33:32 +08:00
eight
0e92e6d0c7
Add applies-to line widget
2017-09-13 16:58:03 +08:00
eight
6195e558e4
Fix: draw title
2017-09-13 16:57:01 +08:00
eight
b102aa0704
Fix: beforeunload warning
2017-09-13 16:56:16 +08:00
eight
279c7d05a7
Fix: _style -> newStyle
2017-09-13 01:39:45 +08:00
eight
2506b957f8
Fix: rewrite loadScript, merge onDOMscripted, injectCSS, injectScript
2017-09-12 23:19:16 +08:00
eight
7c1b140de9
Fix: drop tHTML
2017-09-12 20:06:00 +08:00
eight
4b2f7a1a46
Fix: make codeIsUpdated flag work properly
2017-09-12 19:57:43 +08:00
eight
de84248e05
Fix: add editors hack
2017-09-12 03:44:19 +08:00
eight
f305719db3
Fix: update progress
2017-09-12 01:23:32 +08:00
eight
a15493bfb9
Add: source editor
2017-09-12 00:10:27 +08:00