I want to filter only the a's that are really shown currently in the browser.
I used getBoundingClientRect function, but there are still some cases that I can't filter - like hidden or covered a tags.
Is there a more generic way in pure javascript to know exactly what are the a tags that are really shown currently and the user really can see?
I need it for my chrome extension that uses these tags. So if there is a way to do it using chrome extension API it is a good solution too.
But Mostly the problem is li tags where not all the elements inside the list are shown. How can I know what elements are shown and what not?
Thanks!