I have this in the Tampermonkey script header section:
// @require https://raw.githubusercontent.com/julmot/mark.js/master/dist/mark.js
My marking instance:
for (var i=0; i<slotValuesRows.length; i++) {
let targetToMark = new Mark(slotValuesRows[i]);
targetToMark.mark(["e"],
{"element": "span",
"className": "highlight",
"accuracy": "exactly"});
}
The "e" do not get highlighted and the tab freezes on page load.
I am a beginner, but am suspecting mark.js just does not work with userscripts.
Is that assumption correct?