How do I hide Comala Workflows' banner button that pops up on page request

Stan Ry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 19, 2018

Howdy,

I'd like to hide the annoying Comala's icon that pops out every time you refresh the page, runs all the way right-to the left and then hides itself.

I looks so irritating that my users are going to assesinate me if only I leave this intact. :)

The button looks as:

data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODkgMTQyLjMzIj4KCTx0aXRsZT5Xb3JrZmxvdzwvdGl0bGU+Cgk8cGF0aCBkPSJNNzEuMTcsNDkuOTRhMjEuNzcsMjEuNzcsMCwwLDAtNC42Ny41M0w0OS40MSwzMy4zOGEyMSwyMSwwLDAsMCwuNTMtNC42NkEyMS4yOCwyMS4yOCwwLDEsMCwzMy4zOCw0OS40MWwxNy4wOSwxNy4xYTIwLjc1LDIwLjc1LDAsMCwwLDAsOS4zMkwzMy4zOCw5Mi45MmEyMS4yOCwyMS4yOCwwLDEsMCwxNiwxNkw2Ni41LDkxLjg2YTIxLjIyLDIxLjIyLDAsMSwwLDQuNjctNDEuOTJaIiBzdHlsZT0iZmlsbDojZmZmO3N0cm9rZTojZmZmO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoxNXB4Ii8+Cgk8cGF0aCBkPSJNNzEuMTYsNTBBMjEuMjMsMjEuMjMsMCwwLDAsNDkuOTQsNzEuMjZhMjEuNywyMS43LDAsMCwwLC41Miw0LjY3TDM4LjEzLDg4LjI2QTI3LjU5LDI3LjU5LDAsMCwxLDU0LjQ1LDEwNGwxMi0xMmEyMS42NywyMS42NywwLDAsMCw0LjY2LjUxLDIxLjIyLDIxLjIyLDAsMSwwLDAtNDIuNDRabTUuN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jEuNTMuMy44LDAsLjEyLjA3LjI1LjExLjM3cy4xMy40OC4xOC43MmExLjgzLDEuODMsMCwwLDEsLjA2LjI1Yy4wNy4zMi4xMS42NS4xNSwxbDAsLjI3YzAsLjM1LDAsLjcsMCwxLjA2QTExLjgsMTEuOCwwLDAsMSwyOC43Miw0MC42MWMtLjM2LDAtLjcxLDAtMS4wNiwwbC0uMjcsMGMtLjMzLDAtLjY2LS4wOC0xLS4xNWwtLjI0LS4wNS0uNzMtLjE5TDI1LjA3LDQwYy0uMjctLjA5LS41NC0uMTktLjgtLjNsLS40MS0uMTgtLjQ2LS4yMkwyMywzOS4xMUExMS43OSwxMS43OSwwLDAsMSwxNi45MywyOC44MloiIHN0eWxlPSJmaWxsOiM3MTcwNzAiLz4KCTxwYXRoIGQ9Ik02MS40Nyw0NS41NGwtNi4zOC02LjM4YTM2LDM2LDAsMCwwLTE2LDE2bDYuMzgsNi4zN0EyNy41NSwyNy41NSwwLDAsMSw2MS40Nyw0NS41NFoiIHN0eWxlPSJmaWxsOiM3MTcwNzAiLz4KCjwvc3ZnPg==

 And here it is before it gets hidden:

Comala.Workflows.Icon.on.Refresh1.png

And it hides away because it is an instance of the 'hidden' class:

<a href="/wiki" title="Workflow Information" id="adhocWorkflowsInfoBanner" class="hidden"><span>Workflow</span></a>

 

The CSS they use looks as

#adhocWorkflowsInfoBanner {

padding-left: 18px;

background-image: url(data&colon;image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiI…41NSwwLDAsMSw2MS40Nyw0NS41NFoiIHN0eWxlPSJmaWxsOiM3MTcwNzAiLz4KCjwvc3ZnPg==)!important;

background-repeat: no-repeat!important;

background-position: 3px center!important;

background-size: 16px 16px!important;

(oh, why do they use the !important flag by the way, I've heard it isn't a good coding practice.)

I was going to use this script on the page:

<script type="text/javascript">
(function($) {
  $('#adhocWorkflowsInfoBanner').remove();
 })(AJS.$); 
</script>

But it didn't work out because it seems like the function is invoked after the button hides away.

Is there any way I could hide this button from appearing when the users refresh the page?

I am in no way a developer and that's pretty much one of the first scripts I am have ever written...

Thank you. 

1 answer

1 accepted

0 votes
Answer accepted
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Perhaps this would work? CSS doesn't wait to execute like Javascript does.

<style>
#adhocWorkflowsInfoBanner {
display:none;
}
</style>
Stan Ry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Hi Steven,

Thanks for your response! Actually, that was the first one I've tried. It didn't work. Dunno why.

More to that, I've added the !important bit to override the behavior:

<style>
  #adhocWorkflowsInfoBanner {
    display:none !important;
  }
</style>

All to no avail. This popping out icon is driving my bosses nuts. :)

Any clues?

I am using Markdown macro to insert the CSS style.

I am doing it like that:

1. Insert a new page layout section while in the Edit mode. 

2. Add the Markdown macro to this section.

3. Add the CSS above to this Markdown macro.

4. The CSS gets injected into the source code.

Stan Ry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Figured: for some reason, to fully eliminate the appearance of Comala's banner button you have to apply the CSS to the entire space.

Seems like adding the css to the page by using macros like Markdown may not work due to some lag that appears before the macro injects the CSS into the make markup.

At least adding Steven's macro to the space stylesheet hid the nagging batter from appearing on the page.

Any clues how to force that without having to apply this to the whole space?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events