Hi Mariusz,
This attached script may fit your needs.
It adds two submenus to the Show/Hide Elements Menu.
Their name is quite implicit : the first one hides the activated elements while the second one restore them.
You'll find also a new menu in the Menu Bar : "Capture View", which launch the Capture View window, and automatically trigger this two submenus.
Enjoy!