Commit Graph

67 Commits

Author SHA1 Message Date
eight
42e97ef153 Fix: display error on install page 2018-09-25 20:45:07 +08:00
tophf
35baf6f018 show the reason why update/liveReload is unavailable
fixes #458
2018-08-06 12:45:53 +03:00
tophf
03d02ad405 use codemirror theme in usercss installer page 2018-07-22 17:46:42 +03:00
narcolepticinsomniac
70b8a1172f Responsive layout (#410) 2018-07-16 19:37:01 +03:00
tophf
36f9609a14 site is optional in @author
fixes #429
2018-07-13 00:25:47 +03:00
tophf
561e7c585b use monospace + pre in usercss parsing warning 2018-07-04 19:32:02 +03:00
tophf
66704a78b3 actually use 'pre' font for code errors in messageBox.alert/confirm 2018-03-11 16:31:25 +03:00
tophf
c564aab48f code cosmetics 2018-02-15 16:48:00 +03:00
tophf
683e73ceb9 close the source tab in case the port didn't report onDisconnect
fixes #349
2018-02-15 16:47:42 +03:00
narcolepticinsomniac
8821c2f23f Prevent traditional button active state from applying to usercss install button (#346) 2018-02-14 05:58:27 +03:00
tophf
022e588c97 allow errors in usercss when saving in editor and live-reloading 2018-01-07 16:36:30 +03:00
tophf
bced23052c remove some unnecessary deepCopy calls 2018-01-05 14:05:35 +03:00
tophf
cb3e9973bd also display #live-reload-install-hint after installing 2018-01-04 13:43:57 +03:00
tophf
2ca702c976 show color swatches on usercss installer page 2018-01-04 13:36:56 +03:00
tophf
a339b50e27 allow live-reload without reinstalling 2018-01-04 13:36:27 +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
a8f292815a don't stretch the usercss-install button 2017-12-19 08:48:55 +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
a6f63d096e extract checkboxes to global.css, fixes 2017-12-05 04:39:29 +03:00
narcolepticinsomniac
7339643ec3 Custom checkbox and select elements 2017-12-05 04:39:29 +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
6e142a7444 install-usercss: show error position and source
fixes #276
2017-12-03 23:29:36 +03:00
tophf
0de69e306d code refactor: add $.remove() and $$.remove() 2017-12-02 19:54:54 +03:00
Rob Garrison
3c0b14a477 Install usercss (#269)
install-usercss: restyle "Install style" button
2017-12-02 02:43:01 +03:00
tophf
b762f48135 usercss install: reuse current tab for editor when possible 2017-11-29 17:59:01 +03:00
narcolepticinsomniac
e90de3783a
svg-icon hover and dim disabled checkbox label text
@tophf The bold font and copious padding on the install button is overkill IMO. Almost all our buttons are default, but if we wanna go a little bigger, I'd prefer them more like the "overwrite" and "append" buttons.
2017-11-29 06:24:46 -05:00
narcolepticinsomniac
efecfd926a
Same SVG selector for install page 2017-11-29 05:37:37 -05:00
tophf
bf13383c93 workaround for URLSearchParams not stripping "?" in chrome 49-51 2017-11-28 22:19:00 +03:00
tophf
6aef6cdcd7 0 is a valid tab id 2017-11-25 20:24:15 +03:00
tophf
ea277bcf4c show a spinner on usercss install page while fetching code 2017-11-25 18:24:37 +03:00
tophf
e7175c261a don't confirm on clicking "install" for a new usercss 2017-11-25 18:24:37 +03:00
tophf
aedb02bbb1 install usercss from raw.githubusercontent.com 2017-11-25 18:24:37 +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
44206ef166 some fix for @media query from @Mottie 2017-11-24 13:19:13 +03:00
tophf
44c0f3d076 supernarrow mode at 4" 2017-11-24 13:19:11 +03:00
tophf
8c5471092c rework install-usercss: CSS, layout, warnings 2017-11-24 13:19:10 +03:00
tophf
e9abcc8031 install-usercss: css tweaks
* pad the Install button
* remove global * selector
* add narrow @media query
* simplify css
2017-11-24 13:19:09 +03:00
eight
9b41a70c9b Fix: link style 2017-11-11 13:30:51 +08:00
eight
d59f24caa6 Change: a simpler installUpdateFromLabel 2017-11-11 13:30:41 +08:00
eight
ae50cbe12a Refactor: move alert/confirm util to msgbox.js 2017-11-09 14:35:10 +08:00
eight
d03c752dd5 Fix: promise indent 2017-11-09 14:11:26 +08:00
eight
4a8894de2e Add: use messageBox in install page 2017-11-09 12:26:50 +08:00
eight
7266c38d56 Fix: inline svg 2017-11-09 09:12:13 +08:00
eight
d981660983 Fix: drop getParams 2017-11-01 11:17:00 +08:00
eight
098dc10f85 Fix: pull out runtimeSend 2017-11-01 11:15:11 +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
33607e74a7 Fix: let makeAuthor use makeLink 2017-10-12 16:15:45 +08:00