Skip to content

Instantly share code, notes, and snippets.

Avatar

Quin Knight cheesits456

View GitHub Profile
@cheesits456
cheesits456 / RevertMessageHoverEffects.theme.css
Last active Jun 6, 2020
Custom CSS to remove the message hover effects added in the lastet update (use with BetterDiscord or a Custom-CSS browser plugin)
View RevertMessageHoverEffects.theme.css
/* Disable time showing beside a message when hovering */
div.contents-2mQqc9 span.latin24CompactTimeStamp-2V7XIQ.timestamp-3ZCmNB.timestampVisibleOnHover-2bQeI4.alt-1uNpEt {
display: none;
}
/* Disable background darken when hovering a message */
.da-message:not(.da-mentioned):hover {
background-color: var(--background-primary) !important;
}
@cheesits456
cheesits456 / RemoveButtons.theme.css
Last active Jun 16, 2020
Custom CSS to remove GIF picker and Nitro Gift buttons from Discord's message bar (use with BetterDiscord or a Custom-CSS browser plugin)
View RemoveButtons.theme.css
/* Hide GIF Picker Button */
.buttonContainer-28fw2U > .grow-q77ONN.colorBrand-3pXr91.lookBlank-3eh9lL.button-38aScr.buttonWrapper-1ZmCpA {
display: none;
}
/* Hide Nitro Gift Button */
.buttons-3JBrkn > .grow-q77ONN.colorBrand-3pXr91.lookBlank-3eh9lL.button-38aScr.buttonWrapper-1ZmCpA:nth-of-type(2) {
display: none;
}
@cheesits456
cheesits456 / TransparentWindow.theme.css
Last active Dec 30, 2019
Custom CSS to make Discord slightly transparent (use with BetterDiscord)
View TransparentWindow.theme.css
.da-scrollerWrap .da-scroller::-webkit-scrollbar-thumb {
background-color: #2c75ff !important;
border-color: #091833 !important;
}
.theme-dark .da-scrollerWrap .da-scroller::-webkit-scrollbar-track-piece {
background-color: #000b1e !important;
border-color: #091833 !important;
}
@cheesits456
cheesits456 / uneval.js
Last active Jan 12, 2020 — forked from cho45/uneval.js
Stringify multiple JS Object Types
View uneval.js
function uneval(o) {
switch (typeof o) {
case "undefined": return "(void 0)";
case "boolean": return String(o);
case "number": return String(o);
case "string": return `"${o.replace(/\W/gi, function(_) { return `\\u${(0x10000 + _.charCodeAt(0)).toString(16).slice(1)}` })}"`;
case "function": return `(${o.toString()})`;
case "object":
if (o == null) return "null";
let ret, type = Object.prototype.toString.call(o).match(/\[object (.+)\]/);
You can’t perform that action at this time.