Skip to content

Instantly share code, notes, and snippets.

@yusufusta
Created May 5, 2023 09:58
Show Gist options
  • Save yusufusta/a07f9e3e89fd9516f83a5198b12b124f to your computer and use it in GitHub Desktop.
Save yusufusta/a07f9e3e89fd9516f83a5198b12b124f to your computer and use it in GitHub Desktop.
A better Exxen experience.
// ==UserScript==
// @name Exxen++
// @namespace Violentmonkey Scripts
// @match https://www.exxen.com/*
// @grant none
// @version 1.0
// @author yusufusta.dev
// @description a better exxen experience
// ==/UserScript==
// mouse hider
(function() {
var mouseTimer = null, cursorVisible = true;
function disappearCursor() {
mouseTimer = null;
document.body.style.cursor = "none";
cursorVisible = false;
}
document.onmousemove = function() {
if (mouseTimer) {
window.clearTimeout(mouseTimer);
}
if (!cursorVisible) {
document.body.style.cursor = "default";
cursorVisible = true;
}
mouseTimer = window.setTimeout(disappearCursor, 5000);
};
})();
// anti antiblock
window.getComputedStyle = function () {
return {
getPropertyValue: function (display) {
return "block";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment