From 648387d2567e4072cbbe27b8aab32892c5c776fc Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Sun, 20 Mar 2022 01:28:20 +0100 Subject: [PATCH] added spans to exclusion list --- content.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content.js b/content.js index 8de9f79..c8f4533 100644 --- a/content.js +++ b/content.js @@ -21,7 +21,8 @@ chrome.storage.local.get(["vocabulary", "kanji", "validUserLevel"], (data) => { // Remove all tags (except for ) while(ruby.lastElementChild) { - if(ruby.lastElementChild.tagName.toLowerCase() === "rb") + if(ruby.lastElementChild.tagName.toLowerCase() === "rb" || + ruby.lastElementChild.tagName.toLowerCase() === "span") { ruby.innerHTML = ruby.lastElementChild.innerHTML break