How to hide some files (for example by extension or filename)?

Implemented in Plugin: Advanced Exclude (cross-post 3)