eight
9713c6a3be
Fix: throw an error for unparsable color
2018-09-25 21:56:38 +08:00
eight
3d32b0428b
Fix: vars might be empty
2018-09-25 21:38:40 +08:00
eight
7d75dd8754
Add: meta-parser
2018-09-25 21:18:39 +08:00
eight
ba5d6cc31a
Fix: use spread syntax in loadScript
2018-09-25 21:16:59 +08:00
eight
b853be13f8
Enhance: swith to usercss-meta (in worker)
2018-09-25 21:14:46 +08:00
eight
b0e407e98f
Add: worker util
2018-09-25 14:52:35 +08:00
Rob Garrison
a4d2e3dd9c
Remove misleading comment
2018-09-24 07:02:04 -05:00
Rob Garrison
75d2ef2cc1
Fix strict equals
2018-09-24 07:02:04 -05:00
Rob Garrison
7be33a9237
Fix default values
2018-09-24 07:02:04 -05:00
Rob Garrison
d136fdbafa
Allow including null in number/range variables
2018-09-24 07:02:04 -05:00
Rob Garrison
7d533d4d4a
Fix select default option extraction
2018-09-24 07:02:04 -05:00
Rob Garrison
2a2191049f
Don't allow step to be set to zero
2018-09-24 07:02:04 -05:00
Rob Garrison
1881552348
Remove va.range & add min/max/step to va directly
2018-09-24 07:02:04 -05:00
Rob Garrison
a277800868
Fix all the things
2018-09-24 07:02:04 -05:00
Rob Garrison
7cd4380ee4
Ensure range default & value types match
2018-09-24 07:02:04 -05:00
Rob Garrison
ae6e2647a3
Add proper number & range validation
2018-09-24 07:02:04 -05:00
Rob Garrison
f6998de6ec
Include units in number & range variable
2018-09-24 07:02:04 -05:00
Rob Garrison
2291197277
UserCSS Number variable now accepts a range
2018-09-24 07:02:04 -05:00
Rob Garrison
d9c748d92f
Change range settings to [default, min, max, step]
2018-09-24 07:02:04 -05:00
Rob Garrison
1dc24fac1b
Use string slice instead of replace
2018-09-24 07:02:04 -05:00
Rob Garrison
95f9f9c5d4
Rename to defaultValue
2018-09-24 07:02:04 -05:00
Rob Garrison
9b483d993b
Add default select option. See #492
2018-09-24 07:02:04 -05:00
Rob Garrison
1632a8f364
Add number & range variables. See #492
2018-09-24 07:02:04 -05:00
tophf
b90f7bfce5
don't autofocus external links like feedback
...
#495
2018-09-06 20:59:04 +03:00
tophf
4a877ad27b
fixup c57fef7b: always set lastFocusedViaClick
...
#495
2018-09-06 20:42:48 +03:00
tophf
373fe5f510
code cosmetics
2018-09-06 19:08:56 +03:00
tophf
c57fef7b1e
suppress focus outline when invoked via mouse
...
fixes #495
2018-09-06 19:05:10 +03:00
tophf
af77b55eea
fixup 2fdfd966
...
#482
2018-08-27 20:42:51 +03:00
tophf
2fdfd96699
use the new originalDigest in update UI
...
...when force-updating a locally edited style that turned out to be equal to the remote one
fixes #482
2018-08-27 20:39:36 +03:00
tophf
47c4b8157a
expose 'preserve_newlines' in beautifier; dehtmlize
...
fixes #435
2018-07-23 00:28:11 +03:00
tophf
87da06037f
make showCodeMirrorPopup modal
...
closes #437
2018-07-22 19:37:49 +03:00
Rob Garrison
8a6011de8c
Attempt to update icon count
2018-07-22 11:21:45 -05:00
Rob Garrison
bfe54ab4c4
Add tab communication
2018-07-22 11:21:45 -05:00
Rob Garrison
e94c7edb38
Attempt to fix popup exclusion issues
2018-07-22 11:21:44 -05:00
Rob Garrison
2b4a1a5635
Modify input method
2018-07-22 11:21:44 -05:00
Rob Garrison
68dfa0153c
Add style exclusions. Closes #113
2018-07-22 11:21:43 -05:00
tophf
c6724b02d3
code cosmetics: pacify eslint
2018-07-21 21:04:47 +03:00
Rob Garrison
c61d34d053
Update libraries ( #440 )
2018-07-21 20:58:54 +03:00
tophf
165f7b5684
don't add varDef to code if there are no vars
2018-07-15 17:55:54 +03:00
tophf
26f673f30d
move linter worker loaders to edit/
2018-07-10 11:35:19 +03:00
tophf
d8b776bedf
try installing from full code if 'sections' is empty in style json
...
fixes #414
2018-07-05 15:46:01 +03:00
tophf
766a38e9e8
polyfill Error.captureStackTrace in FF
...
fixes #412
2018-07-04 19:21:21 +03:00
tophf
d36fea27ad
fixup 3418ac9c: append to updateLog
2018-05-09 18:33:28 +03:00
tophf
10a0fedd05
make sure BG.API_METHODS is defined
2018-05-05 20:17:33 +03:00
tophf
5ef347a4d9
LESS preprocessor
...
closes #373
2018-04-19 20:02:23 +03:00
tophf
0614aa2eee
new editor option: selectByTokens
...
implements #361 except for toggling via Ctrl
2018-04-18 19:33:36 +03:00
tophf
8cad7d61eb
scrollElementIntoView: skip if orphaned
2018-04-17 22:34:18 +03:00
tophf
32f05861e3
FF: register hotkeys on startup; reset if empty
2018-04-13 14:30:36 +03:00
tophf
e80efa7604
FF: hotkeys dialog
2018-04-12 21:28:45 +03:00
tophf
5b9fd4454b
$create should read opt.appendChild if selector is string
2018-04-12 20:42:01 +03:00
tophf
2a75159d2a
USO bug workaround: collapse long URL vars
...
#195
2018-04-12 09:13:55 +03:00
tophf
009970965f
let openURL() replace browser-specific New/empty Tab Page
2018-03-30 03:23:21 +03:00
tophf
9969266379
FF60+: show additional info in popup on AMO
...
#312
2018-03-23 01:44:40 +03:00
tophf
89d4bb1ed4
handle chrome:// scheme in openURL()
2018-03-22 03:09:20 +03:00
tophf
f2d49ecbb9
resolve activateTab() to tab instead of [tab, window]
2018-03-14 22:00:25 +03:00
tophf
06ded49131
openURL+message: use onTabReady instead of repeated sending
...
because the tab may take many seconds to start loading depending on connectivity etc.
2018-03-14 05:58:28 +03:00
tophf
de0920da53
enable 'editor.autoCloseBrackets' in fresh installs by default
...
because now that we have LivePreview enabled by default typing a single { breaks the style until a closing } is entered.
2018-03-13 20:43:19 +03:00
tophf
4901e97f9f
open USO style settings even if the site tab is auto-activated
2018-03-13 18:35:28 +03:00
tophf
34799263eb
fixup 259f3732: only switch to POST if 'body' wasn't customized
2018-03-12 22:39:19 +03:00
tophf
259f373207
properly cut URL#href on '?' when sending a POST request
...
fixes #365
2018-03-12 21:41:25 +03:00
tophf
dbba338229
report line:ch in live-preview errors for usercss
2018-03-11 16:47:27 +03:00
tophf
0ba26072f7
restore Chrome 49 compatibility: remove "u" flag in RegExp
...
since it wasn't used globally (e.g. vendor code) it made no real difference
2018-02-28 05:15:28 +03:00
tophf
a8769e375b
browser.runtime.getBrowserInfo was added in FF 51
2018-02-25 16:51:07 +03:00
tophf
95a24cd29b
catch fatal parsing errors
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
10b82ae7cc
actually import settings from sync
...
fixes #331
2018-01-24 03:47:26 +03:00
tophf
4493c9e9f0
don't double-process 'styleUpdated' in manager
2018-01-14 18:18:08 +03:00
tophf
bb34538da0
smart invalidateCache: try to update filters in-place
2018-01-12 00:54:40 +03:00
tophf
989df35b05
live preview in editor
...
* refreshAllTabs was extracted
* ...and fixed to use each frame's url when getting the styles
2018-01-12 00:54:36 +03:00
tophf
b754635b81
lenient parsing of invalid single \ in regexp() function
2018-01-11 15:29:52 +03:00
tophf
022e588c97
allow errors in usercss when saving in editor and live-reloading
2018-01-07 16:36:30 +03:00
tophf
2036819442
reuse parserCache on subsequent saving of usercss
2018-01-07 12:31:23 +03:00
tophf
d2cba96e10
refactor CSSLint
...
* reduce linting delay
* parse mozformat in worker
* allow empty functions in 'filter:' property
https://drafts.fxtf.org/filter-effects/#supported-filter-functions
* support comma-separated list in :lang()
* strip vendor prefix in isLiteral()
2018-01-07 12:31:23 +03:00
tophf
807ea6aa70
extract colorconverter.js
2018-01-07 11:52:43 +03:00
tophf
71c3e0c7a8
extract and improve dummy chrome.storage in FF
...
* chrome.storage.onChanged supported in own pages
* values are stored in the background page
* chrome.storage in own pages accesses that background storage
2018-01-04 17:04:23 +03:00
tophf
2374c88e1b
extract styleSectionsEqual
2018-01-04 16:43:54 +03:00
tophf
e6d04fad6d
meta value starts after a name on the same line
2018-01-04 11:10:59 +03:00
tophf
28e9e38dad
remove 'dysfunctional' page
2018-01-03 10:44:12 +03:00
tophf
3418ac9cb9
FF: support private/container tabs
2018-01-03 10:43:56 +03:00
tophf
5bc4206593
reuse existing usercss installer tab
...
A few additional checks were needed to circumvent FF bugs
so openURL was refactored to keep the code readable
2017-12-31 17:59:32 +03:00
tophf
46a3038394
don't add soft hyphens at the end of text
2017-12-29 23:37:17 +03:00
tophf
0f96e2fa4d
set language for CSS :lang and [FF-only] hyphenation
2017-12-29 18:19:35 +03:00
tophf
5ac3662699
fixup 5a07bbb1: parse ISO date strings
...
#319
2017-12-29 17:52:47 +03:00
tophf
8c5ad8fe4b
postpone addTooltipsToEllipsized more to avoid accidental layout
2017-12-26 08:46:05 +03:00
Rob Garrison
5a07bbb1e3
Add manager sort block
2017-12-25 12:17:18 +03:00
tophf
2d12bfd1f5
l10n: actually stop observing
2017-12-22 11:22:02 +03:00
tophf
4946aad684
FF: allow access to AMO in FF (actually works in 59+)
...
fixes #312
2017-12-22 08:36:10 +03:00
tophf
154187f1bc
use offsetWidth to decide if the button text is ellipsized
2017-12-19 08:48:55 +03:00
tophf
6607455e8f
silence eslint; switch shirt-circuiting to single-line if/else
2017-12-18 10:27:50 +03:00
tophf
4a924d6aa8
add 'textarea' to focusAccessibility.ELEMENTS
2017-12-18 10:27:50 +03:00
tophf
50d3dbe394
expose prefs.defaults
2017-12-18 10:27:50 +03:00
tophf
fefe82fd54
remove what-input, use own implementation, rebase on master
2017-12-13 03:27:10 +03:00
tophf
510ae91ac0
don't insert ­ before whitespace
2017-12-12 03:18:37 +03:00
tophf
3410a58cd9
don't add ­ on word boundaries and strip it from tooltips
...
addresses #300
2017-12-11 22:39:22 +03:00
tophf
d035e18b9f
expose responseType in download()
2017-12-10 10:11:19 +03:00
tophf
b2b82f8310
break shorter words (5-10) followed by punctuation in tWordBreak
2017-12-10 10:11:18 +03:00
tophf
0a865318a4
popup: "configure" opens USO page and expands the settings area
2017-12-10 07:56:41 +03:00
tophf
4b207f3dd4
basic tweaks/fixes for inline search
2017-12-10 04:03:04 +03:00
tophf
36fcb02b51
auto-unsubscribe prefs observer when element is gone
2017-12-09 17:38:00 +03:00
tophf
18b20d13be
onDOMscriptReady: notify all matching subscribers
2017-12-08 21:55:08 +03:00