Last active
August 29, 2015 14:18
-
-
Save spike886/7e33bd8caa4f6eaa7cd2 to your computer and use it in GitHub Desktop.
Script to disable info messages on hipchat web
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 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