addElement()
.addElement()
method, so we can type that into the code input parameter for this addon. The addElement()
method does not have any arguments, so we can leave that field blank.document.getElementsByClassName()
method. Since this method returns a list, we need to index it to get the first element and then call the setAttribute()
method on that element. Putting that all together the javascript code that we will need to execute to hide this button will look like this: