In a dialog, I would like to show all elements with a specific class. The dialog should hide the rest of the page.
So for example: On this Stack Overflow page, I want to show all elements with class="user-info"
. Those elements would be shown in a dialog with the same width and height and the same CSS and everything else would be hidden. It would be like cutting them out of the page and pasting them in a dialog.
Any ideas how this could be done?