added spans to exclusion list
This commit is contained in:
parent
03ea59286b
commit
648387d256
|
@ -21,7 +21,8 @@ chrome.storage.local.get(["vocabulary", "kanji", "validUserLevel"], (data) => {
|
||||||
// Remove all tags (except for <rb>)
|
// Remove all tags (except for <rb>)
|
||||||
while(ruby.lastElementChild)
|
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
|
ruby.innerHTML = ruby.lastElementChild.innerHTML
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue