Skip to content

Instantly share code, notes, and snippets.

@Tomanow
Created August 9, 2016 16:03
Show Gist options
  • Save Tomanow/0c4eb47ee6355471cf1f9bcc57af99b4 to your computer and use it in GitHub Desktop.
Save Tomanow/0c4eb47ee6355471cf1f9bcc57af99b4 to your computer and use it in GitHub Desktop.
Hide SP stuff not in webpart
<script>
$(function() {
var $div_to_move = $('#MSOZoneCell_WebPartWPQ2'),
$body = $('body');
if ($div_to_move.length) {
$body.prepend($div_to_move);
$('body').children().not('#MSOZoneCell_WebPartWPQ2').remove();
$('body').prop('style', 'overflow-y: scroll !important;');
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment