From 8259e6afda6f6e913b3199075dcc72271b3aacbd Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 9 Jan 2024 20:09:34 +0000 Subject: [PATCH] add google translate endpoint --- css/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/css/app.js b/css/app.js index 204802d..f2bbc18 100644 --- a/css/app.js +++ b/css/app.js @@ -290,11 +290,9 @@ function fetchUrls(urls) { video.addEventListener("contextmenu", function(event) { // Check if the video is in fullscreen mode if (!document.fullscreenElement && !document.webkitFullscreenElement && !document.mozFullScreenElement && !document.msFullscreenElement) { - // The video is not in fullscreen mode, prevent the default behavior - event.preventDefault(); + event.preventDefault(); - // Your additional context menu logic - popupMenu.style.display = "block"; + popupMenu.style.display = "block"; popupMenu.style.left = event.pageX + "px"; popupMenu.style.top = event.pageY + "px"; } @@ -356,4 +354,6 @@ video.addEventListener("contextmenu", function(event) { return 2; } } + +const GoogleTranslateEndpoint = "https://translate.google.com/_/TranslateWebserverUi/data/batchexecute?rpcids=MkEWBc&rt=c" // @license-end \ No newline at end of file