Last active
February 4, 2025 16:04
-
-
Save gregrahn/4c507676b8dd7771e944a7cafc9b508b to your computer and use it in GitHub Desktop.
Disable the thumbnail enlargement in UI Protect web UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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