1/** 2 * Open links in diagrams in the browser window instead of SVG frame 3 */ 4window.addEventListener('load', () => { 5 document.querySelectorAll('object.diagrams-svg svg a').forEach(link => { 6 link.setAttribute('target', '_parent'); 7 link.setAttribute('style', 'pointer-events: all;'); 8 }); 9}); 10