1jQuery(document).ready(function () { 2 function remove_buttons() { 3 var $iframes = jQuery('.plugin__pdfjs'); 4 $iframes.contents().find('#openFile').remove(); 5 $iframes.contents().find('#secondaryOpenFile').remove(); 6 if (JSINFO['plugin_pdfjs']['hide_download_button'] === 1) { 7 $iframes.contents().find('#download').remove(); 8 $iframes.contents().find('#secondaryDownload').remove(); 9 } 10 } 11 remove_buttons(); 12 // do it once again after 4 seconds for slower networks -> refer #18 13 setTimeout(remove_buttons, 4000); 14}); 15