I think @jeff’s version expects jQuery to be present, here’s a vanilla JavaScript version:
[...document.querySelectorAll("a[href*='?xgtab&']")].forEach(link => {
link.setAttribute("target", "moredetail");
});
I think @jeff’s version expects jQuery to be present, here’s a vanilla JavaScript version:
[...document.querySelectorAll("a[href*='?xgtab&']")].forEach(link => {
link.setAttribute("target", "moredetail");
});