diff options
| author | Teddy Wing | 2021-03-20 00:08:20 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-20 00:08:20 +0100 |
| commit | 4c585bf6bbd786b88d8f63210d2ad316b9ff6845 (patch) | |
| tree | 7e50bc49c584b74b8c3d5ebcaa16aace52ad0157 | |
| parent | 279f450a32420b648f249f3b5753afa96bb37b83 (diff) | |
| download | netflix-esc-4c585bf6bbd786b88d8f63210d2ad316b9ff6845.tar.bz2 | |
Update `more_info_button` click event
The `PointerEvent` no longer works to click the "More Info" button after
a recent Netflix update. Change it to a "click" `MouseEvent` instead
which works.
| -rw-r--r-- | netflix-esc.user.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/netflix-esc.user.js b/netflix-esc.user.js index 397c992..52230e2 100644 --- a/netflix-esc.user.js +++ b/netflix-esc.user.js @@ -63,6 +63,9 @@ function info_modal_open () { '.mini-modal-container button[data-uia="expand-to-detail-button"]' ); - var pointer_event = new PointerEvent('pointerdown', { bubbles: true }); - more_info_button.dispatchEvent(pointer_event); + var click = new MouseEvent( + 'click', + { buttons: 1, bubbles: true } + ); + more_info_button.dispatchEvent(click); } |
