Hi First off, I'm a beginner to greasemonkey so this is probably just me not understanding how this is supposed to work I've got some javascript that executes correctly when entered into firefox's console and makes the changes to the active web page, but when I enter it into a userscript, nothing happens. The script is below, can anyone suggest why this would not be working? The script does execute, as if I do a document.title = buttonNodes.length the title does show the number of elements in the array.
// ==UserScript== // @name Accessible Setup Icons // @namespace http://192.168.1.2 // @description adds role to buttons with class of button // @include http://192.168.1.2/* // @version 1 // @grant None // ==/UserScript== var buttonNodes = document.getElementsByClassName("button"); for (i = 0; i < buttonNodes.length; i++) buttonNodes[i].setAttribute('role', 'button'); I'd appreciate any suggestions anyone can provide. Nick -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
