That gizmo is called a Killflash filter. It resembles a honeycomb and installs in the objective end of the rifle scope. It is specifically designed yo prevent light reflections off the optics. A reflection off the optics at the wrong time and place can give away the shooter's position.
I have a shade, but this looks promising. Midway has a large assortment for different fittings and budgets. need to experiment.