Im using the Google Docs Viewer to show a docx file that is hosted in my server.
The google doc viewer create somthing like this:
I need to remove the button in the red box when the docviewer is generated.
Im tryng with jquery and one of the clas of that buttom like this:
$('.ndfHFb-c4YZDc-aSZUA-GSQQnc-LgbsSe').remove();
Where ndfHFb-c4YZDc-aSZUA-GSQQnc-LgbsSe
is a class of the button.
I try a lot and I'm running out of options.
Any idea for something that can resolve the problem?
You shouldn't do this with jQuery. jQuery is easily overriden and unsafe, since the code is run on client-side.
I'm not sure how Google Docs Viewer works. If it works through an iFrame, you are out of luck. If it works through a PHP Class, you should modify the PHP to not show the button.