The plugin is written to filter the selector to find visited links.
It does so by plugging in an iframe and inserting all the links of interest and filtering through until it finds all the visited links, using the CSS :visited property.
The plugin also allows you to drop in a function to easily run against each visited link, see documentation and demo.