From 589cc53ad9cb09aed29ed724df6a4810d90328cf Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 23 Feb 2018 15:14:10 +0300 Subject: [PATCH] adjust selector for "config on homepage" of USO styles --- content/install-hook-userstyles.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/install-hook-userstyles.js b/content/install-hook-userstyles.js index 09f3f832..5b13a906 100644 --- a/content/install-hook-userstyles.js +++ b/content/install-hook-userstyles.js @@ -277,9 +277,7 @@ function openSettings(countdown = 10e3) { - const button = document.querySelector('.advanced_button') || - document.evaluate('//*[not(*) and contains(., "Advanced Style Settings")]', - document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; + const button = document.querySelector('.customize_button'); if (button) { button.dispatchEvent(new MouseEvent('click', {bubbles: true})); setTimeout(function pollArea(countdown = 2000) {