From 41198e0b48286c08a9ecdb58c190b436b0eb68da Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 9 May 2018 20:52:45 +0300 Subject: [PATCH] [Chrome 66+] expand advanced options in MD-exts --- options/options.css | 4 ++++ options/options.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/options/options.css b/options/options.css index 8560c5b0..766be243 100644 --- a/options/options.css +++ b/options/options.css @@ -46,6 +46,10 @@ body { position: relative; } +.block:nth-last-child(2) { + margin-bottom: 0; +} + .block:last-child { border-bottom: none; padding-bottom: 0; diff --git a/options/options.js b/options/options.js index 462600dc..fba0903c 100644 --- a/options/options.js +++ b/options/options.js @@ -6,7 +6,8 @@ setupRadioButtons(); enforceInputRange($('#popupWidth')); setTimeout(splitLongTooltips); -if (!FIREFOX && !OPERA) { +// collapse #advanced block in Chrome pre-66 (classic chrome://extensions UI) +if (!FIREFOX && !OPERA && CHROME < 3343) { const block = $('#advanced'); $('h1', block).onclick = event => { event.preventDefault();