Skip to content

Instantly share code, notes, and snippets.

@spike886
Last active August 29, 2015 14:18
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 spike886/7e33bd8caa4f6eaa7cd2 to your computer and use it in GitHub Desktop.
Save spike886/7e33bd8caa4f6eaa7cd2 to your computer and use it in GitHub Desktop.
Script to disable info messages on hipchat web
// ==UserScript==
// @name web hipchat changer
// @namespace https://gist.github.com/spike886/7e33bd8caa4f6eaa7cd2
// @version 0.1
// @description At the moment it just hiddes info messages
// @author Andres
// @match https://*.hipchat.com/chat
// @updateURL https://gist.github.com/spike886/7e33bd8caa4f6eaa7cd2/raw/hipchat.user.js
// @grant none
// ==/UserScript==
// common function in css to change css style
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('.hc-msg-info {display: none;}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment