The example is from this forum post:
https://www.adventuregamestudio.co.uk/forums/index.php?msg=636655592
(Here I will try to do it now facebook.com)
Maybe it works without brackets facebook.com
Nope.
Did you make an actual hyperlink or is this the autogenerated ones that I think are not possible to disable? (https://www.adventuregamestudio.co.uk/forums/site-forum-reports/strange-hyperlink-created-when-typing-ags-script-names/)
Facebook.co.uk (facebook.co.uk)
https://www.facebook.co.uk
Works fine if you type an actual URL, so do that!
No, I didn't make an actual hyperlink, was just casually mentioning the link.
Here's code that fixes these broken links:
document.querySelectorAll("a.bbc_link").forEach(a => {
const parts = a.href.split(/\/\/\//);
if (parts.length > 1) a.href="//" + parts[1];
});
Quote from: Khris on Fri 09/06/2023 10:39:24Here's code that fixes these broken links:
document.querySelectorAll("a.bbc_link").forEach(a => {
const parts = a.href.split(/\/\/\//);
if (parts.length > 1) a.href="//" + parts[1];
});
Yet more
@Khris magic! I've implemented this, thanks.