If you are generally working on large PSD files with lots of layers, sometimes things can turn into a mass. This little handy script helps keeping things in an order by deleting unnecessary non-visible, hidden layers.

Here we have really cool free photoshop script. It basically repeats last used filter to all selected layers. The next step would be repeating an action for selected layers. Lately tested on Photoshop CS6 and working without any problem.