Skip to content

Instantly share code, notes, and snippets.

@x-magic
Last active October 16, 2017 01:42
Show Gist options
  • Save x-magic/fad0a41f430783af6c898181081233c4 to your computer and use it in GitHub Desktop.
Save x-magic/fad0a41f430783af6c898181081233c4 to your computer and use it in GitHub Desktop.
Change 9-column layout of diary entry page to fullwidth, then boost up the font size
// ==UserScript==
// @name Mahara Diary Entry Companion
// @namespace https://mahara.infotech.monash.edu.au/
// @version 0.1
// @description Change 9-column layout of diary entry page to fullwidth, then boost up the font size
// @include https://mahara.infotech.monash.edu.au/mahara/artefact/artefact.php?artefact=*
// @run-at document-end
// @copyright 2017, Bill Gong <[email protected]>
// @updateURL https://gist.githubusercontent.com/x-magic/fad0a41f430783af6c898181081233c4/raw/MaharaDiaryEntryCompanion.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/fad0a41f430783af6c898181081233c4/raw/MaharaDiaryEntryCompanion.user.js
// ==/UserScript==
(function() {
'use strict';
jQuery('#main-column-container div.col-md-9').attr('class', 'col-md-12');
jQuery('.postcontent').find('*').each(function(){jQuery(this).css('font-size','x-large').css('font-family','');});
jQuery('.navbar-form').remove();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment