$('body').find('a').each(function() {
var href=$(this).attr('onclick');
if(href) {
href=href.replace("location.href='", '').replace(/'$/g, '');
$(this).attr('href',href);
}
Bookmarklet with https://mrcoles.com/bookmarklet/ : (include jQuery)
javascript:(function()%7Bfunction%20callback()%7B(function(%24)%7Bvar%20jQuery%3D%24%3B%24('body').find('a').each(function()%20%7Bvar%20href%3D%24(this).attr('onclick')%3Bif(href)%20%7Bhref%3Dhref.replace(%22location.href%3D'%22%2C%20'').replace(%2F'%24%2Fg%2C%20'')%3B%24(this).attr('href'%2Chref)%3B%7D%7D)%7D)(jQuery.noConflict(true))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js%22%3Bif(s.addEventListener)%7Bs.addEventListener(%22load%22%2Ccallback%2Cfalse)%7Delse%20if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()