Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence advertising on public links

Giulio Grassini
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2024

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.

confluence_popup.png

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

1 answer

1 accepted

0 votes
Answer accepted
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 22, 2024

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.

Giulio Grassini
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2024

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 :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events