Skip to content

Commit d79b35f

Browse files
committed
Update searchJumper.user.js
1 parent c81baa8 commit d79b35f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

searchJumper.user.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5888,6 +5888,15 @@
58885888
} else {
58895889
let newNode = document.createTextNode(mark.firstChild.data);
58905890
mark.parentNode.replaceChild(newNode, mark);
5891+
const pa = newNode.parentNode;
5892+
if (pa && pa.nodeName === 'SPAN' && pa.style.cssText === 'all: unset;') {
5893+
const papa = pa.parentNode;
5894+
if (papa) {
5895+
const newTextNodeCon = document.createDocumentFragment();
5896+
newTextNodeCon.append(...pa.childNodes);
5897+
papa.replaceChild(newTextNodeCon, pa);
5898+
}
5899+
}
58915900
normalizeSet.add(newNode.parentNode);
58925901
}
58935902
}

0 commit comments

Comments
 (0)