Let your AI assistant set it up. Connect the Super MCP to Claude, ChatGPT or another assistant and paste this prompt:
Use the Super MCP to stop links opening in a new tab on my Super site [site name].
Follow the guide at https://docs.super.so/help/super-how-tos/how-to-stop-links-opening-in-a-new-tab and keep all existing code.
Then show me a preview of a page with links.If you find that links open in a new tab when you click them, you're not alone. This is a feature of Super's default settings.
If you'd like to change this you can use this script to do this in the Code > Body section
<script>
if(document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded',afterDOMLoaded);
} else {
afterDOMLoaded();
}
function afterDOMLoaded(){
//Everything that needs to happen after the DOM has initially loaded.
Array.from(document.querySelectorAll('a[target="_blank"]'))
.forEach(link => link.removeAttribute('target'));
}
</script>