Skip to content

Instantly share code, notes, and snippets.

@iketari
Forked from iliakan/manifest.json
Last active June 20, 2016 13:20
Show Gist options
  • Save iketari/030acf9941c8a97e8d5bccab3995d257 to your computer and use it in GitHub Desktop.
Save iketari/030acf9941c8a97e8d5bccab3995d257 to your computer and use it in GitHub Desktop.
{
"manifest_version": 2,
"name": "Slack hide panes",
"version": "1.1",
"description": "Hide Slack Panes.",
"applications": {
"gecko": {
"id": "slack-hide-pane@javascript.ru",
"strict_min_version": "45.0"
}
},
"content_scripts": [
{
"matches": ["*://*.slack.com/*"],
"js": ["slack-hide-panes.js"],
"css": ["slack-hide-panes.css"]
}
]
}
body {
min-width: 100%;
}
/* hide top */
.slack-hide-panes #client_body {
margin-top: 0;
}
.slack-hide-panes #client_header {
display: none;
}
/* hide left */
.slack-hide-panes #col_channels_bg,
.slack-hide-panes #col_channels {
display: none;
}
.slack-hide-panes #messages_container {
margin-left: 0;
}
.slack-hide-panes #footer {
left: 0;
z-index: 100500;
}
.slack-hide-panes #msgs_scroller_div {
height: 100vh !important;
padding-bottom: 70px;
}
.slack-hide-panes #msgs_div {
padding-bottom: 70px;
}
document.addEventListener('keydown', function(e) {
if (e.keyCode == 115) {
// F4
toggle();
}
})
function toggle() {
document.documentElement.classList.toggle('slack-hide-panes');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment