Skip to content

Instantly share code, notes, and snippets.

@gregrahn
Last active February 4, 2025 16:04
Show Gist options
  • Save gregrahn/4c507676b8dd7771e944a7cafc9b508b to your computer and use it in GitHub Desktop.
Save gregrahn/4c507676b8dd7771e944a7cafc9b508b to your computer and use it in GitHub Desktop.
Disable the thumbnail enlargement in UI Protect web UI
// ==UserScript==
// @name ui-protect-thumb-noenlarge
// @namespace none
// @version v0.1
// @description Blocks JavaScript-based hover effects on thumbnails in Protect web UI
// @author gregrahn
// @match https://unifi.ui.com/consoles/*/protect/detections/find-anything*
// @include https://*/protect/detections/find-anything*
// @grant none
// ==/UserScript==
// tested on UniFi Protect Application 5.2.46
(function() {
'use strict';
document.addEventListener("mouseenter", function(event) {
event.stopPropagation();
}, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment