Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active July 31, 2016 08:49
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/6cb9c8fb855b3513732b1715a5393e9d to your computer and use it in GitHub Desktop.
Save ivan/6cb9c8fb855b3513732b1715a5393e9d to your computer and use it in GitHub Desktop.
Align irccloud nick gutter and tweak default theme
// ==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;
}
/* Make all text black */
div.log, div.chat, span.message span.content {
color: #000 !important;
}
body, textarea, li, input {
font: 15px 'Sans', 'Noto Sans CJK JP' !important;
font-size: 15px !important;
}
body, div.scroll, .bufferinputcell, .inputcell form, .inputcell form textarea {
background-color: rgb(228, 220, 215);
}
#timeContainer {
visibility: hidden;
}
.inputcell form {
border: 1px solid #ABA9A8;
}
div.log div.row {
/* Get rid of the 2px vertical spacing */
padding-top: 0px;
padding-bottom: 0px;
}
div.row.highlight {
background-color: inherit !important;
}
div.row.highlight .message .content {
color: #962549 !important;
}
div.self {
background-color: inherit !important;
}
div.collapsedHead {
border-bottom: rgba(255, 255, 255, 0.5) !important;
}
span.date {
color: #555 !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