Last active
March 23, 2024 03:50
-
-
Save qgustavor/e11546dd1812fd3908c47496623c21ff to your computer and use it in GitHub Desktop.
Keep Cifras Awake
This file contains 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 Keep Cifras Awake | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-21 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.cifraclub.com.br/* | |
// @icon https://icons.duckduckgo.com/ip2/cifraclub.com.br.ico | |
// @grant none | |
// @require https://unpkg.com/@zakj/[email protected]/dist/no-sleep.umd.cjs | |
// ==/UserScript== | |
const wakeLock = new NoSleep() | |
document.body.addEventListener('click', async () => { | |
if (wakeLock.enabled) return | |
wakeLock.enable() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment