Skip to content

Commit

Permalink
replace unblur toggle with click event on sentence translation elements
Browse files Browse the repository at this point in the history
This is done to allow the same behavior as when the sentence is clicked and the automatic translation is fetched
  • Loading branch information
6a67 committed Jan 13, 2025
1 parent 266eb8e commit 26e881f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JPDB Userscript (6a67)
// @namespace http://tampermonkey.net/
// @version 0.1.191
// @version 0.1.192
// @description Script for JPDB that adds some styling and functionality
// @match *://jpdb.io/*
// @grant GM_addStyle
Expand Down Expand Up @@ -2923,7 +2923,7 @@
document.addEventListener('keydown', function (event) {
if (event.key === 'c') {
document.querySelectorAll('.sentence-translation').forEach((element) => {
element.classList.toggle('unblur');
element.click();
});
}
});
Expand Down

0 comments on commit 26e881f

Please sign in to comment.