Created
January 9, 2015 17:02
-
-
Save lukebakken/e16eba146030fed65f26 to your computer and use it in GitHub Desktop.
HipChat web chat long idle for Chromium/Chrome
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== | |
// @author Luke Bakken | |
// @name Hipchat Long Idle | |
// @namespace org.bowbak.luke | |
// @description Makes you stay "Available" in hipchat for 8 hours of inactivity instead of 5 minutes | |
// @match https://*.hipchat.com/chat | |
// @version 1 | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
var actualCode = ['app.IDLE_DELAY_MS = 28800000;', | |
'console.log("SET app.IDLE_DELAY_MS TO %d", app.IDLE_DELAY_MS);', | |
].join('\n'); | |
var script = document.createElement('script'); | |
script.textContent = actualCode; | |
(document.head||document.documentElement).appendChild(script); | |
script.parentNode.removeChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment