Skip to content

Commit 26922b2

Browse files
committed
Update Highlight Every Code.user.js
1 parent 2d132a2 commit 26922b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Highlight Every Code/Highlight Every Code.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
});
7070
document.addEventListener('mouseover', function(o) {
7171
if(o.target.nodeName!="PRE" && o.target.nodeName!="CODE")return;
72+
if(o.target.offsetWidth && o.target.offsetWidth<100)return;
7273
selStr=o.target.innerText;
7374
if(!selStr)return;
7475
codes=selStr.replace(/&/g, "&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;");

0 commit comments

Comments
 (0)