I have a new modern news webpart in classic SP Online and I need to hide the "+ Add"
Could you explain how this can be done with JS?
I have the following code, how can this be used to not load the "+ Add"
<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var f=$('#iframeID')
f.load(function(){
f.contents().find('.feedback_88fc6c94').hide();
})
})
</script>
document.querySelector("button[data-automation-id='newsAddButton'").style.display = "none"