When a user chooses \"File > Print\" on a browser such as Firefox or Internet Explorer, or clicks on a link that runs the below javascript
window.print(); >
You can do:
window.old_print=window.print window.print=function() { alert('doing things'); window.old_print(); }
but this will only catch calls to print() from inside the page javascript.
print()
Did you try putting !important on print-specific stylesheet?
!important