I want to get the Element ID or Class from a Safari webpage and highlight the element the mouse is over in order to create a content blocker hiding listing.
How can this be done?
How can this be done?
Code Block document.getElementById("demo");
Code Block document.getElementsByClassName("demo");
Code Block document.addEventListener('mousemove', function (e) { var srcElement = e.srcElement; srcElement.style.backgroundColor = "yellow"; });