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