Commit Graph

145 Commits

Author SHA1 Message Date
eight
7eba890a21 Merge branch 'dev-private-prefs' into dev-exclusions 2018-10-10 23:15:14 +08:00
eight
d2b36a168e Kill hidden globals 2018-10-10 23:05:20 +08:00
eight
fd9ab5d6e5 Fix: switch to editor 2018-10-10 00:41:07 +08:00
eight
057111b171 Update usercss API 2018-10-07 22:59:31 +08:00
eight
5b3b4e680f Add: navigator-util 2018-10-07 21:20:39 +08:00
eight
b5107b78a5 Add: broadcast messages with reasons 2018-10-07 01:42:43 +08:00
eight
e7ef4948cd Fix: observer is unavailable? 2018-10-06 18:10:58 +08:00
eight
1c635b5bc1 Drop requestStyles 2018-10-06 17:47:43 +08:00
eight
75f2561154 Fix: don't recreate element when style update in popup 2018-10-06 16:38:04 +08:00
eight
196b6aac63 Fix: the return value of getSectionsByUrl is changed 2018-10-06 15:16:00 +08:00
eight
095998f07c Change: switch to msg.js 2018-10-06 13:27:58 +08:00
eight
fa3127d988 Change: switch to msg.js 2018-10-06 13:02:45 +08:00
eight
171339f710 WIP: drop api.js 2018-10-06 04:39:48 +08:00
eight
34497ebe16 WIP: switch to API 2018-10-05 18:47:52 +08:00
eight
f1639cc33e WIP: broadcastMessage 2018-10-05 01:03:40 +08:00
eight
d35f92250e Fixme: styleViaAPI 2018-10-04 18:08:19 +08:00
eight
8a6e8ac03a Change: drop prefChanged, use prefs service 2018-10-04 18:05:41 +08:00
eight
6d32ffb76b WIP 2018-10-04 12:46:19 +08:00
tophf
e128498518 code cosmetics: convert to a lintable template string 2018-09-11 17:41:46 +03:00
tophf
6fdc01201b FF: preserve sheet's disabled state in workaround for #461 2018-09-11 17:39:43 +03:00
tophf
dcdb4be10b FF59+: always set style's textContent in page context
see #461
2018-09-05 15:58:15 +03:00
tophf
bfe18e74a4 FF bug workaround: set style element code in page context
fixes #461
2018-08-25 09:42:35 +03:00
tophf
406a7cd4c0 FF bug workaround: apply styles to more iframes 2018-08-09 21:22:26 +03:00
tophf
1b7c131c37 fixup 1a42e6bf 2018-08-06 21:27:48 +03:00
tophf
91fb0579f1 code clarification 2018-08-06 17:38:38 +03:00
tophf
1a42e6bf00 move the iframe styles in the next animation frame
fixes #461
2018-08-06 17:38:38 +03:00
tophf
41e2d43ecc fixup 7c9fd5e6: the enclosed code had nested backticks! 2018-07-05 22:49:28 +03:00
tophf
7f5a5fecbf invoke USO style API in iframe
fixes #417
2018-07-05 22:15:45 +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
9992ae3374 explicitly parse a text response into JSON 2018-07-05 11:40:23 +03:00
tophf
7c9fd5e611 spoof USO referrer for their style search API
fixes #413
2018-07-04 15:39:27 +03:00
tophf
2c22d98421 code cosmetics; old typo fixup 2018-07-04 01:22:49 +03:00
tophf
2bb00d2559 spoof Stylish installation check on USO
see #379
2018-07-04 01:22:46 +03:00
tophf
9aea35799d tweak USO handshake to match Stylish
fixes #379
2018-04-30 19:31:43 +03:00
tophf
2a75159d2a USO bug workaround: collapse long URL vars
#195
2018-04-12 09:13:55 +03:00
tophf
1d7437d181 revert 07e1d3b9, USO still can't handle POST properly 2018-04-12 07:37:51 +03:00
tophf
16d46edfba increase USO style installation/update timeout
#195
2018-04-11 12:55:23 +03:00
tophf
07e1d3b902 USO can handle POST now
#195
2018-04-11 12:55:23 +03:00
tophf
40054902e9 USO can't handle POST requests for style json 2018-03-13 17:23:47 +03:00
tophf
fa2b6f07ce send style status to USO even more insistently
see #354
2018-03-02 18:08:25 +03:00
tophf
db256f73f5 send style status to USO twice if #install_button reappears
see #354
2018-03-02 15:55:39 +03:00
tophf
d4b4b07ab3 [Chrome] restore the install/update button functionality on USO
resolves #354 in Chrome only since the USO site is broken in FF
(the site checks for chrome-extension:// URL which should be moz-extension://)
2018-02-27 21:30:29 +03:00
tophf
589cc53ad9 adjust selector for "config on homepage" of USO styles 2018-02-23 15:14:10 +03:00
tophf
654f63b894 remove unused code
see #348
2018-02-15 16:48:37 +03:00
DecentM
44a11508ff Add OpenUserCSS support (#328) 2018-02-15 11:27:00 +03:00
tophf
e84afd9a20 fix a copypaste error 2018-02-03 06:31:43 +03:00
tophf
75a9ce4696 don't overwrite url in stylus-iframe attr with "true" 2018-01-20 16:26:13 +03:00
tophf
a3962b7adf put https://top.site.origin in "stylus-iframe" attr 2018-01-19 15:37:26 +03:00
tophf
0fa391732b workaround for Chrome devtools bug (fixed in v65)
recreate the style element on style code change because older devtools inspector can't edit injected rules after we update textContent of an existing element
2018-01-15 19:43:35 +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