Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lukebakken
Created January 9, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebakken/e16eba146030fed65f26 to your computer and use it in GitHub Desktop.
Save lukebakken/e16eba146030fed65f26 to your computer and use it in GitHub Desktop.
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