There's a slight problem with the new skipDisliked option. There are two instances of 'olderButton' on desktop version of the site:
The function works well when you click the first button (or when you press right arrow on the keyboard). However, it doesn't trigger when you click on the second one, or the right.
There's a slight problem with the new
skipDisliked
option. There are two instances of 'olderButton' on desktop version of the site:The function works well when you click the first button (or when you press right arrow on the keyboard). However, it doesn't trigger when you click on the second one, or the right.
The problem is on this line: https://github.com/jakubboucek/roumen-cz-improve-ui/blob/dc3f9504762ce276c74ffcf691e7887382164015/roumen.js#L68
The
document.querySelector()
call only returns the first element matching that xpath. Consider usingdocument.querySelectorAll()
instad.