Is there a way to remove the advertising pop-up in Confluence Cloud for every open link? I’ve tried inserting an HTML/JavaScript macro within the pages, but nothing seems to work or hide it.
The code I tried:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Popup Blocker</title>
<script>
// Function to block popups
function blockPopups() {
var popupInterval = setInterval(function() {
// Check for open windows
var windows = window.open("", "_blank");
// If there's an open window, close it
if (windows) {
windows.close();
alert("Popup blocked!");
}
}, 1000); // Check every second
}
window.onload = function() {
blockPopups(); // Call blockPopups function after page load
};
</script>
</head>
<body>
thank you in advance
Hi @Giulio Grassini ,
When you insert javascript into a page, it will be escaped (i.e. rendered non-functional) for security reasons.
That means your approach won't work, and I don't know a solution to block the popups within Confluence.
However you might use a browser extension to block the popups.
Thank you for the reply Marc! Anyway the problem is limited to unregistered users, the agents doesn't see any pop up after the deactivation of product suggestions, so I'm still loking forward to find a workaroud :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.