From 6968f042845e28b8882c458dd7631cd34234d4a3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 17 Jul 2021 04:47:44 +0200 Subject: 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. --- netflix-esc.user.js | 6 +----- 1 file changed, 1 insertion(+), 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 () { -- cgit v1.2.3