Last active
October 4, 2023 06:13
-
-
Save ryanhatfield/8fd2d0af54c1205738214c717e0bfa9a to your computer and use it in GitHub Desktop.
Hide Slack Sidebar Icons
Has anyone successfully combined this script with this into one script yet? If not, would anyone be willing to give me a pointer on how to smash these two together?
Joshua Turner's addition is great but reverts pretty frequently, sometimes several times a day. I'd really like to apply a more stable hack/patch/whatever and this seems like just the way to move forward, but my brain is completely locked into error checking/remediating Jamf's CIS scripts and i feel like I'm at some negative percentage of computing/noggin power currently. "Jello" or "mush" seem like appropriate descriptors of my brain's consistency at the moment. =\
cmd+c
:
document.addEventListener("DOMContentLoaded", function () {
let tt__customCss = `
.p-channel_sidebar__presence_icon.p-channel_sidebar__presence_icon--on-avatar {
transform: scale(1.5) translateX(-6px) translateY(-5px);
}
.p-channel_sidebar__mpim_counter {
transform: scale(1.2) translateX(-4px) translateY(-4px);
}
span.p-channel_sidebar__mpim_avatars_mpim1.c-avatar {
opacity: 0;
}
.p-channel_sidebar__channel span.c-avatar {
opacity: 0;
}
.p-channel_sidebar__user_avatar--hide-presence .p-channel_sidebar__presence_icon--on-avatar {
display: block;
transform: scale(1.5) translateX(-3.5px) translateY(-9px);
}
.p-channel_sidebar__channel_icon_prefix--comfy {
margin-right: 0px;
}
`;
var head = document.head;
var iconStyle = document.createElement("style");
iconStyle.appendChild(document.createTextNode(tt__customCss));
head.appendChild(iconStyle);
});
vi /Applications/Slack.app/Contents/Resources/app/dist/preload.bundle.js
:$
i
cmd+v
esc
:wq
done
Kickass. Thanks a ton @marcopelegrini!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The persistence doesn't seem to work for me since I have updated slack to latest - 4.11.3. Anyone else facing the same ?
Update: Ok got it fixed by re-running the script again (This might need to be done each time we install / update slack it seems).