So jQuery provides this awesome pseudo to query in DOM on \':visible\', unfortunately, its rather heavily tied into the core of jQuery and Sizzle (or whatever engine you may
I'd recommend you use at the very least some selector library that does this work for you. Otherwise you're just wasting your effort in something that has already been tested and proven successful for no particular reason, and you're bound to probably even get it wrong the first few attempts you make.
For instance Sizzle is only 4kb when minified/gzipped so I see virtually no reason not to use it.