Need to hide web-elements into confluence for user-group

Rano February 10, 2021

I have this script but i wand to hide this element for special user-group onliy for this user-group
Thanks for help


<script type="text/javascript">
AJS.toInit(function() {
setTimeout(function() {
if (AJS.$("#sidebar-discover .nav-item-all-updates").length > 0) {
AJS.$("#sidebar-discover .nav-item-all-updates").hide();
return;
}
}, 100);
});
AJS.toInit(function() {
setTimeout(function() {
if (AJS.$("#sidebar-discover .nav-item-all-updates").length > 0) {
AJS.$("#sidebar-discover .nav-item-all-updates").hide();
AJS.$("#sidebar-discover .nav-item-popular-stream").hide();
AJS.$("#sidebar-discover > div > div > strong").hide()
return;
}
}, 100);
});

$( document ).ready(function() {
if (window.location.href.indexOf("#all-updates") > 0) {
location.replace("https://conf.#######.##/#recently-worked")
location.reload();
}
});
</script>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events