tophf
491fcef08b
also move style element when it's the first child
...
see #295
2017-12-09 19:37:31 +03:00
tophf
57e335abb8
raise style restoration limit; don't count own changes
2017-12-09 18:41:05 +03:00
tophf
9486c7f3df
don't report usercss as installed on USO if homepage matches
2017-12-09 04:43:02 +03:00
tophf
a71d2fa226
...even less eager
2017-12-07 11:10:32 +03:00
tophf
6e1a6d1ad6
don't be too eager at restoring style elements to prevent deadlocks
2017-12-07 10:49:47 +03:00
tophf
6d4689e559
ensure own style elements dominance over other style elements
2017-12-07 10:12:01 +03:00
tophf
2b22494f3f
move style elements after head/body regardless of prior stuff
...
fixes #284
2017-12-05 08:50:07 +03:00
tophf
3bf0f7e2f8
FF: ensure styles are ordered correctly in background tabs
...
should probably help #284
2017-12-05 06:27:51 +03:00
tophf
7de3e37a51
show "Style installed" in manager for styles added while it's open
2017-12-02 07:07:12 +03:00
tophf
bf13383c93
workaround for URLSearchParams not stripping "?" in chrome 49-51
2017-11-28 22:19:00 +03:00
tophf
fb3554a351
simplify orphanCheck; use IIFE; fix comm issues
2017-11-26 04:24:23 +03:00
tophf
babeb695c1
kick out orphaned script
2017-11-26 00:23:38 +03:00
tophf
2495ded507
fixup c8b6672d: restore deleted elements
2017-11-25 23:47:39 +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
3fe3f08407
USO page: animate the update button's spinner on consequent clicks
2017-11-24 13:19:16 +03:00
tophf
c8b6672d79
always sort applied style elements by id
2017-11-24 13:19:13 +03:00
tophf
777adf1bae
correctly fix the USO bug with populating settings on their site
...
previously we disconnected the interceptor on first XHR response, which is not necessarily for the style, so now we wait until an actual one.
2017-11-21 13:42:51 +03:00
tophf
e8d0c7d039
update button on USO page now confirms only on the first click
2017-11-21 13:33:11 +03:00
tophf
f1836f399f
try to get style json on USO install page twice
...
also report errors
fixes #195
2017-11-21 13:23:32 +03:00
tophf
24c60b7e8a
fixup 8a1908b7: don't protect disabled elements
2017-11-21 10:59:14 +03:00
tophf
8a1908b760
protect own style elements (100 times max to avoid deadlocks)
...
fixes #252
2017-11-21 09:45:44 +03:00
tophf
ac8331e6ae
FF: use tabs API for XML viewer
2017-11-14 09:52:51 +03:00
tophf
9503acc2bf
styleSectionsEqual() order of sections should be identical
...
Thus we account for the case of multiple sections matching the same URL because the order of rules is part of cascading
2017-11-14 09:38:09 +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
tophf
b6703e7b15
fix disableAll in XML documents: tag names are case-sensitive in XML
2017-11-13 20:25:07 +03:00
tophf
8efe4b806b
revert 3cf32048: Chrome 49+ XML viewer works with styles under <html>
2017-11-13 20:09:19 +03:00
eight
29f5daa912
i18n: live reload error
2017-11-09 14:11:25 +08:00
eight
e0bd991482
Fix: promise indent
2017-11-09 09:12:03 +08:00
eight
92b01e19e8
Fix: reindent single then
2017-11-09 09:12:03 +08:00
eight
90be1dae25
Fix: status: 'success' -> success: true
2017-11-09 05:35:45 +08:00
tophf
684f445957
workaround for USO double-firing of install/update events
2017-11-08 07:00:38 +03:00
tophf
d2b9b30239
reliable userAgent detection in FF before 57
...
fixes #228
2017-11-08 06:53:36 +03:00
eight
398056c262
Fix: _source -> newSource
2017-11-01 11:15:18 +08:00
eight
098dc10f85
Fix: pull out runtimeSend
2017-11-01 11:15:11 +08:00
tophf
e9a7640a3f
apply: recognize moz-extension://
2017-10-20 02:13:01 +03:00
tophf
5064ca1d4e
prevent DOM id confusion
...
DOM elements with an id are propagated as global variables
https://stackoverflow.com/q/6381425
2017-10-18 21:30:17 +03:00
eight
54076d9f17
Merge branch 'master' of https://github.com/openstyles/stylus into dev-user-css
2017-10-12 16:28:18 +08:00
eight
f194155830
Add: close source tab after install
2017-10-06 16:33:50 +08:00
tophf
869168f727
install: better USO title bug workaround on page>=2
2017-09-30 03:20:59 +03:00
eight
c2eadda708
Add: live-reload
2017-09-25 20:01:50 +08:00
eight
18fd15317e
WIP: install page
2017-09-24 11:39:04 +08:00
eight
2b6404cb11
Fix: stop live-reload and refresh the page when style is removed
2017-09-19 08:51:57 +08:00
eight
0852b56ce4
Fix: add set updateUrl option
2017-09-19 08:51:56 +08:00
eight
ead006a311
Fix: remove button style
2017-09-19 05:10:45 +08:00
eight
1d829fe8f5
Fix: split up usercss logic from saveStyle
2017-09-18 11:34:12 +08:00
eight
94e5336018
Fix: don't set updateUrl to a local file
2017-09-18 07:39:46 +08:00
tophf
054528edde
apply: SVG className workaround
2017-09-17 10:56:03 +03:00
eight
a0495f466f
Change style structure
2017-09-16 10:14:23 +08:00
eight
eaf33afbe3
Rewrite parser, add uso preprocessor
2017-09-15 13:40:04 +08:00