Commit Graph

176 Commits

Author SHA1 Message Date
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
0ed37c2667 popup: add side borders in Chrome 62+
fixes #226
2017-11-14 11:20:49 +03:00
tophf
8b28262fe7 emphasize disableAll mode: make the label red and bold
fixes #227 which is quite typical for new users
2017-11-13 20:42:35 +03:00
tophf
d053d78c8f popup: use "height: min-content" instead of the hack 2017-11-08 06:54:30 +03:00
Sebastian Reuße
033269ac9b popup: don’t assume the browser styles text in black
Fixes #218.
2017-10-28 10:47:30 +03:00
tophf
7cf27601ae popup: USO workaround for finding extension styles 2017-09-30 03:19:27 +03:00
tophf
4c616442f6 correctly show/hide #no-styles message in the popup 2017-08-31 13:42:30 +03:00
tophf
fa5ebb8958 use callbacks in animateElement to avoid re-animation 2017-08-31 13:42:30 +03:00
tophf
58b52b0bf0 make #confirm popup more flexible
kinda fixes #175
2017-08-31 13:42:30 +03:00
Rob Garrison
d563495c26 Fix no-inline-comments issues 2017-08-27 17:20:45 -05:00
tophf
320ea3485a hyphenate blocked-info in FF 2017-08-27 13:02:58 +03:00
tophf
90ab2959a6 abandon automatic translation in CSS
* it fails with some languages in some versions of FF
* it's not as flexible as HTML templates
* we were only using it for a few messages
2017-08-27 13:02:17 +03:00
tophf
fb7f7d5471 URL-mode in manager's search and popup's manage button
* in manager use search query like url:https://github.com/openstyles/stylus
* in popup shift-click or right-click on manager button opens it and applies the filter
2017-08-23 12:16:32 +03:00
tophf
6ce8ce0425 0189fc0d followup: wait for lazyload blindly only in FF 2017-08-23 09:46:36 +03:00
tophf
0189fc0d6b popup should wait for tab-on-demand to start loading
fixes a rare case of the popup being invoked right after switching to a lazily restored tab-on-demand, which doesn't have an URL yet in FF or has an URL but not the content script in some Chrome forks that implement tab-on-demand
2017-08-18 14:48:11 +03:00
tophf
815f8ca959 also find styles for URLs with stripped #hash
kinda fixes #155

as per spec the fragment portion is ignored in @-moz-document:
https://www.w3.org/TR/2012/WD-css3-conditional-20120911/#url-of-doc
but we still respect url("foo#hash") set in userstyles
because the spec is outdated and doesn't account for SPA sites

collateral damage: simplified URLS.supported()
2017-08-18 13:18:19 +03:00
tophf
d24b62461c don't detect sloppy regexps in styles without regexps 2017-08-18 12:56:03 +03:00
tophf
a3d0a1e340 popup: simplify breadcrumbs; fix 1st word underline in FF 2017-08-14 21:15:29 +03:00
tophf
aac39da053 avoid leaking of "dead objects"; fixes #141 2017-08-08 19:33:43 +03:00
narcolepticinsomniac
42d0bcd673 Eliminate popup button ellipsis and fix margins
Fixes #140
2017-08-07 18:25:01 -04:00
narcolepticinsomniac
ede3725268 Popup adjustments for common zoom levels
Fixes #133
2017-08-07 17:15:19 -04:00
Jeremy Schomery
f5c125d61c no more innerHTML in popup.js 2017-07-22 12:54:32 +03:00
Rob Garrison
417e3b5de3 Add eqeqeq definition to eslint 2017-07-16 13:07:21 -05:00
Rob Garrison
1940318f0f Fix eslint issues & use arrow functions 2017-07-16 13:07:15 -05:00
Rob Garrison
7a9d629ec8 Restructure folders 2017-07-12 16:26:20 -05:00