diff options
| author | Teddy Wing | 2021-07-17 04:47:44 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-07-17 04:47:44 +0200 |
| commit | 6968f042845e28b8882c458dd7631cd34234d4a3 (patch) | |
| tree | ca0b4ad8c4a1870006f29299d7c6a2bb42187f78 /netflix-esc.user.js | |
| parent | 4641886f0186c0a2979131d24f11b750e8f5a5a4 (diff) | |
| download | netflix-esc-6968f042845e28b8882c458dd7631cd34234d4a3.tar.bz2 | |
Update `more_info_button` click event
Following a recent Netflix update, the `MouseEvent` now causes the info
modal to open a new page instead of opening in the existing page.
Change the `MouseEvent` to a regular element click call to fix this.
Diffstat (limited to 'netflix-esc.user.js')
| -rw-r--r-- | netflix-esc.user.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/netflix-esc.user.js b/netflix-esc.user.js index 955a24f..9f095e7 100644 --- a/netflix-esc.user.js +++ b/netflix-esc.user.js @@ -79,11 +79,7 @@ function info_modal_open () { '.mini-modal-container button[data-uia="expand-to-detail-button"]' ); - var click = new MouseEvent( - 'click', - { buttons: 1, bubbles: true } - ); - more_info_button.dispatchEvent(click); + more_info_button.click(); } function row_left () { |
