Not in general.
In theory you could make an extension that will:
- Wait until page is loaded.
- For every "JS link" pretend that it's clicked
- Intercept redirection
- Rewrite original "JS link" to a real link based on the target of redirection
There are some issues with this approach, though:
- As far as I know browser extension APIs (especially userscript API) won't let you intercept redirections
- Clicking links may have unwanted side effects on the page you're viewing, eg. it can disable some form buttons
- There is no easy way to distinguish "JS links" from links that are meant to do something on the website, but don't redirect you anywhere (typical for Single Page Apps)
- This procedure may partially depend on the halting problem which, in general, is unsolvable.
There are extensions that do this for specific sites (for example FB Purity can "fix" links on Facebook), but there is no general approach that would work everywhere