Skip to content

Instantly share code, notes, and snippets.

@redfellow
Last active August 6, 2018 11:13
Show Gist options
  • Save redfellow/ef4e209acabb7dc30ef8c159cdc494cd to your computer and use it in GitHub Desktop.
Save redfellow/ef4e209acabb7dc30ef8c159cdc494cd to your computer and use it in GitHub Desktop.
/* FOR RAMBOX, edit service and paste under "Advanced / Custom code" */
function applycss(css){
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('style');
s.setAttribute('type', 'text/css');
s.appendChild(document.createTextNode(css));
head.appendChild(s);
}
applycss(`
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] {
padding-top: 11px;
margin-bottom: 11px;
padding-bottom: 0;
zoom: 0.9;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=dividerEnabled] {
margin: 11px 0 -11px !important;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=markup] {
line-height: 1.15;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] > [class^='message'] {
position: relative;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 strong {
font-weight: 600;
letter-spacing: 0.2px;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 time {
font-size: 14px
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 [class^='botTag'] {
background-color: #191919;
color: #aaa;
opacity: 0.5;
padding: 2px 4px;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=header] [class^='image'] {
height: 37px;
width: 37px;
position: relative;
top: 2px;
border-radius: 3px;
}
`);
/* As a basic custom css (for Wavebox and similar) */
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] {
padding-top: 11px;
margin-bottom: 11px;
padding-bottom: 0;
zoom: 0.9;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=dividerEnabled] {
margin: 11px 0 -11px !important;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=markup] {
line-height: 1.15;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] > [class^='message'] {
position: relative;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 strong {
font-weight: 600;
letter-spacing: 0.2px;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 time {
font-size: 14px
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] h2 [class^='botTag'] {
background-color: #191919;
color: #aaa;
opacity: 0.5;
padding: 2px 4px;
}
[class^='chat'] [class^='content'] [class^='messages'] > [class^='container'] [class^=header] [class^='image'] {
height: 37px;
width: 37px;
position: relative;
top: 2px;
border-radius: 3px;
}
@redfellow
Copy link
Author

Updated, Discord keeps obfuscating their selectors shrug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment