I am developing a tampermonkey script, in order to fill a popup when this appears, this in particular.

So when the page is launched and I click a button, this creates a new popup that is a div with a particular class.

The idea is that when this popup is launched execute a piece of code to fill that popup.

I am triying with the following code:

```
/ ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        
// @icon         https://www.google.com/s2/favicons?domain=atlassian.net
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.getElementById('jira-dialog-heading').addEventListener('click', function() {
        alert('do something');
    });

})();

```

but doesn't work.

How can I do this?

**EDIT 1**

All code updated

Not errors in console

Thanks