How can i remove everything after the domain(3dmks.eu/(this))?

Im trying to remove everything that comes after the .eu

The webpage is made in multiple sections and how u scroll u will notice the page is pulling sections.

I would like to remove it but i dont know how and i cant find how to do it or implement it,

U can check the website and see what i mean when u scroll down the sections. 3dmks.eu

Thank you.

let url = "3dmks.eu/some/path";
let result = url.split(".eu")[0] + ".eu";
console.log(result); // Output: "3dmks.eu"
let url = "3dmks.eu/some/path";
let result = url.replace(/.eu.*/, ".eu");
console.log(result); // Output: "3dmks.eu"

I tried this but didn’t work out.