Skip to content

Instantly share code, notes, and snippets.

@AinTunez
Last active July 10, 2020 10:16
Show Gist options
  • Select an option

  • Save AinTunez/77518706b04c20508842c17933e1812e to your computer and use it in GitHub Desktop.

Select an option

Save AinTunez/77518706b04c20508842c17933e1812e to your computer and use it in GitHub Desktop.
BB Community Enhancements
// ==UserScript==
// @name BB Community Enhancements
// @namespace [email protected]
// @version 0.5
// @description Makes the Bb Community site easier to use.
// @author You
// @match https://community.blackboard.com/*
// @grant none
// ==/UserScript==
(function ($) {
var path = location.pathname.substring(1);
$(document).ready(function () {
//make the sidebar less obtrusive on discussion sites
if (path.startsWith('discuss')) {
$('.site_page_column_0')
.removeClass('col-lg-8')
.addClass('col-lg-10');
$('.site_page_column_1')
.removeClass('col-lg-4')
.addClass('col-lg-2');
}
//stop the "Auto-Saved" notification from popping up
$('head').append('<style> .cke_notifications_area { display: none !important } </style>');
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment