We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
meaning
1 parent 55bd396 commit 572aed3Copy full SHA for 572aed3
background/background.js
@@ -39,13 +39,15 @@ function extractMeaning (document, context) {
39
if(definitionDivNodeList) {
40
definitionDivNodeList.forEach((definitionDiv) => {
41
if (definitionDiv) {
42
+ var meaning = ""
43
definitionDiv.querySelectorAll("span").forEach( function(span) {
44
if(!span.querySelector("sup")) {
- meaningArray.push(span.textContent);
45
+ meaning = meaning + span.textContent;
46
}
47
});
48
+ meaningArray.push(meaning);
49
- });
50
+ });
51
52
53
for(var i = 0; i < meaningArray.length; i++) {
@@ -91,4 +93,4 @@ function saveWord (content) {
91
93
definitions
92
94
95
})
-}
96
+}
0 commit comments