Is it possible to hide media details sidebar when wp.media popup is being opened?

Ok, It’s been so long since I posted this question I totally forgot about it. I finally used popup.on( 'open', function() {...}); to remove left modal sidebar. Here we go:

popup.on( 'open', function() {

    jQuery( '.media-frame-menu' ).remove();
    jQuery( '.media-frame-router, .media-frame-title, .media-frame-content, .media-frame-toolbar' ).css({'left': 0});

});

That’s it 🙂

EDIT

I managed to hide right hand side image detail sidebar of the media modal as well but it required adding admin CSS. jQuery (add to above function as third line below two others):

jQuery( '.media-modal-content' ).addClass( 'full-width' );

And then in admin style CSS file:

.media-modal-content.full-width .media-frame-content .attachments-browser .media-toolbar,
.media-modal-content.full-width .media-frame-content .attachments-browser .attachments {
    right: 0 !important;
}

.media-modal-content.full-width .media-frame-content .attachments-browser .media-sidebar {
    display: none !important;
}