Post

Replies

Boosts

Views

Activity

Reply to get Safari HTML Element ID
Get element by ID: document.getElementById("demo"); Get elements by class name (returns an array of all elements with that class name): document.getElementsByClassName("demo"); Highlight element mouse is over (not tested, also need to remove highlight once mouse is no longer over element): document.addEventListener('mousemove', function (e) { var srcElement = e.srcElement; srcElement.style.backgroundColor = "yellow"; });
Topic: Safari & Web SubTopic: General Tags:
Apr ’21
Reply to Safari Web Extension Not Working for User
Yes this issue sounds similar, pkdavidstorm. Unfortunately my extension just got a 1-star review because of this issue (user unable to see the extension in Safari, and the button to "Quit and open Safari Extension Preferences" does nothing.) Hopefully this is fixed soon.
Topic: Safari & Web SubTopic: General Tags:
Dec ’20
Reply to safari storage.local
That would be “localStorage.” Check out this documentation to learn how to read and write to Safari’s localStorage: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
Topic: Safari & Web SubTopic: General Tags:
Dec ’20