changes made to match patterns to allow the plugin to be used on more links