adjust selector for "config on homepage" of USO styles

This commit is contained in:
tophf 2018-02-23 15:14:10 +03:00
parent 4e4f0501d2
commit 589cc53ad9

View File

@ -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) {