Hey so why does the script require looping through all elements on the page?
var dom = document.getElementsByTagName('*');
for (var tagnum = 0; tagnum < dom.length; tagnum++) {
Why can't you just do
var elements = document.querySelectorAll('.addtocalendar')
Hey so why does the script require looping through all elements on the page?
Why can't you just do