Skip to content

Instantly share code, notes, and snippets.

@lukebakken
Created January 9, 2015 17:02
Embed
What would you like to do?
HipChat web chat long idle for Chromium/Chrome
// ==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