mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 18:08:40 +01:00
add google translate endpoint
This commit is contained in:
parent
636a0daf31
commit
8259e6afda
1 changed files with 4 additions and 4 deletions
|
@ -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
|
Loading…
Reference in a new issue