☰

JW Player Double-Tap Fullscreen Blocker

Blocks JW Player's double-tap fullscreen trigger on ohentai.org. Manual fullscreen, play/pause, and in-fullscreen gestures remain functional.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
angraecums
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
2
คะแนน
0 0 0
เวอร์ชัน
27.03
สร้างเมื่อ
20-09-2026
อัปเดตเมื่อ
20-09-2026
Size
3.1 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

JW Player Double-Tap Fullscreen Blocker

Prevents JW Player from entering fullscreen mode when you double-tap the video area on ohentai.org. Manual fullscreen via the player button, play/pause controls, and in-fullscreen double-tap seek remain fully functional.


What This Script Does

  • Blocks double-tap fullscreen — prevents JW Player's built-in double-tap gesture from triggering fullscreen on the video container.
  • Preserves manual fullscreen — the fullscreen button in JW Player's control bar still works normally.
  • Preserves play/pause and other controls — all player buttons remain functional in both fullscreen and non-fullscreen modes.
  • Preserves in-fullscreen gestures — once you enter fullscreen manually, double-tap seek (via GlideVideo) continues to work as expected.


How It Works

  1. Neutralizes the webkitEnterFullscreen API (iOS Safari fallback path).
  2. Suppresses window-level dblclick events from reaching the player container.
  3. Blocks the second touchstart on JW Player containers only — the first tap still passes through so single-tap controls work.
  4. Disables the native double-tap gesture via CSS touch-action: manipulation on the player, media wrapper, and video element.


Known Limitations

  • GlideVideo seek does not work in portrait non-fullscreen mode. This is a limitation of GlideVideo's internal shouldBlockGestures() function, which disables gestures in portrait when not in fullscreen. This script does not modify GlideVideo's behavior.
  • Workaround: Rotate your device to landscape, or enter fullscreen manually — double-tap seek works in both cases.


Compatibility

  • Browser: Vivaldi Mobile, Firefox Android, or any Chromium-based browser with userscript support.
  • Userscript Manager: Violentmonkey (recommended) or Tampermonkey.
  • Tested Site: ohentai.org (JW Player 8.18.3).
  • GlideVideo: Compatible — no conflict with GlideVideo's event listeners.


License

MIT License — free to use, modify, and redistribute.


Found a bug or have a suggestion? Leave feedback on this script's page.