Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active May 11, 2016 10:22
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 ivan/93da7b2551a78c9231c1b7f0729491b1 to your computer and use it in GitHub Desktop.
Save ivan/93da7b2551a78c9231c1b7f0729491b1 to your computer and use it in GitHub Desktop.
IRCCloud nick gutter
// ==UserScript==
// @name Fix IRCCloud
// @namespace fixirrcloud
// @include *://www.irccloud.com/*
// @grant none
// ==/UserScript==
var styles = `
/* Normal message lines */
.authorWrap {
display: inline-block !important;
min-width: 135px !important;
text-align: right !important;
}
/* /me message lines */
.messageRow.me .message .content .author {
display: inline-block !important;
min-width: 116px !important;
text-align: right !important;
}
`;
var newSS = document.createElement('link');
newSS.rel = 'stylesheet';
newSS.href = 'data:text/css,' + escape(styles);
document.getElementsByTagName("head")[0].appendChild(newSS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment