Skip to content

Commit 26e881f

Browse files
committed
replace unblur toggle with click event on sentence translation elements
This is done to allow the same behavior as when the sentence is clicked and the automatic translation is fetched
1 parent 266eb8e commit 26e881f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name JPDB Userscript (6a67)
33
// @namespace http://tampermonkey.net/
4-
// @version 0.1.191
4+
// @version 0.1.192
55
// @description Script for JPDB that adds some styling and functionality
66
// @match *://jpdb.io/*
77
// @grant GM_addStyle
@@ -2923,7 +2923,7 @@
29232923
document.addEventListener('keydown', function (event) {
29242924
if (event.key === 'c') {
29252925
document.querySelectorAll('.sentence-translation').forEach((element) => {
2926-
element.classList.toggle('unblur');
2926+
element.click();
29272927
});
29282928
}
29292929
});

0 commit comments

Comments
 (0)