This will iterate though all layersets and layers and set the opacity to 100.
Code:
#target photoshop
if(documents.length){
setLayerOpacity(app.activeDocument);
}
function setLayerOpacity(obj){
if(obj.artLayers.length>0){
for(var z = 0;z<obj.artLayers.length;z++){
activeDocument.activeLayer=obj.layers[z];
activeDocument.activeLayer.opacity=100;
}
}
if(obj.layerSets.length > 0){
for(var l=0;l<obj.layerSets.length;l++){
activeDocument.activeLayer=obj.layerSets[l];
activeDocument.activeLayer.opacity=100;
setLayerOpacity(obj.layerSets[l]);
}
}
}