Skip to content

Instantly share code, notes, and snippets.

@tcelestino
Created October 6, 2023 17:25
Show Gist options
  • Save tcelestino/954074c79c090dec95cc6b16816cc530 to your computer and use it in GitHub Desktop.
Save tcelestino/954074c79c090dec95cc6b16816cc530 to your computer and use it in GitHub Desktop.
Removendo modal de alerta ao editar um custom charts no Jira
  1. Crie um novo marcador (bookmark) no seu navegador.
  2. Copie e cole o código abaixo na URL do marcador.
javascript:(function(){const iframe=document.querySelector('iframe.custom-charts-editor');if(iframe){const iframeDocument=iframe.contentDocument||iframe.contentWindow.document;const targetElement=iframeDocument.querySelector('section.custom-charts-splashscreen');if(targetElement){targetElement.remove(); console.log('Element found:',targetElement);}else{console.log('Element not found inside the iframe.');}}else{console.log('No iframes found on the page.');}})();
  1. Dê um nome ao marcador (por exemplo, "Remove Custom Charts Alerts").
  2. Quando editar o “custom chart” clique no marcador para executar o código de remoção do alerta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment