Skip to content

Hide the Active Incidents and Past Incidents in status page #447

Answered by bvenkysubbu
bvenkysubbu asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the reply @AnandChowdhary.
Since you support js, I found a dirty way to accomplish the same.

The javascript code below will remove the 'Active Incidents' and 'Past Incidents' section from the status page.

status-website:
  js: "function contains(t,n){var e=document.querySelectorAll(t);return Array.prototype.filter.call(e,function(t){return RegExp(n).test(t.textContent)})}window.onload = function() {setTimeout(function(){foundDivsActiveIncidents=contains('section','Active Incidents');foundDivsActiveIncidents[0].remove();foundDivsPastIncidents=contains('section','Past Incidents');foundDivsPastIncidents[0].remove();}, 5000);}"

Zooming in to the javascript code -

function conta…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bvenkysubbu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants