civitai.com fast react

Fast keyboard 1-4 emoji reactions for civitai.com instead of clicking the buttons. First press will expand the reaction toolbar. Subsequent presses will add a reaction with the matching emoji from left to right (thumbs up 👍, heart ❤️, tears 😂, crying 😢). Shift + number (!@#$) to remove reaction. Make sure your mouse is over the image you want to react to.

< Σχολιασμός για τον κώδικα civitai.com fast react

Ερώτηση/σχόλιο

§
Δημοσιεύτηκε: 16/09/2024

Currently broken. To get it to somewhat work again, replace this line:
return img.nextElementSibling.querySelector('button[data-button="true"]')?.parentElement;
with this one:
return img.parentElement.parentElement.querySelector('.bottom-1').firstElementChild;
and replace this:
const ACTIVE_CLASS = 'mantine-c49ihw'; // found on the BUTTON on /images
with this:
const ACTIVE_CLASS = 'mantine-1rk94m8'; // found on the BUTTON on /images

Came here to joke that my script is better because you can use it one handed, but this one is pretty useful too if you actually care about what reactions you want to leave.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.