Created
June 20, 2016 14:27
-
-
Save iliakan/9230d26de3dcaef5468c884ff49b63a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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"] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: -15px; | |
z-index: 100500; | |
} | |
.slack-hide-panes #msgs_scroller_div { | |
height: 100vh !important; | |
padding-bottom: 70px; | |
} | |
.slack-hide-panes #msgs_div { | |
padding-bottom: 70px; | |
} | |
.slack-hide-panes .dense_theme ts-message .message_gutter { | |
width: 3.5rem; | |
} | |
.slack-hide-panes .dense_theme ts-message .message_content { | |
margin-left: 3rem; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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