Skip to content

Instantly share code, notes, and snippets.

View admmssy's full-sized avatar

Adam Massey admmssy

View GitHub Profile
@admmssy
admmssy / gist:3899016
Created October 16, 2012 12:39
Output Drupal book hierarchy
$book_top_page= $book_id;
$tree = menu_tree_all_data(book_menu_name($book_top_page));
print drupal_render(menu_tree_output($tree));
@admmssy
admmssy / aston-toolbar-mods.php
Created September 11, 2012 10:58
Wordpress Toolbar Tweak
<?php
/*
Plugin Name: Aston Toolbar Tweaks
Description: Modify the wordpress toolbar
Author: Adam Massey
Author URI: https://twitter.com/admmssy
*/
function aston_toolbar_tweaks($wp_toolbar) {
@admmssy
admmssy / panopto_wider_columns.user.js
Created February 6, 2012 15:08
Userscript for Chrome: doubles the width of the left hand column in Panopto session lists.
// ==UserScript==
// @name Panopto Wider Columns
// @namespace http://replay.aston.ac.uk
// @description Makes left column wider
// @include http://replay.aston.ac.uk/Panopto/Pages/Sessions/*
// ==/UserScript==
GM_addStyle(".leftcolumn { width: 504px; !important; }");
GM_addStyle(".rightcolumn { margin-left: 504px; !important; }");
@admmssy
admmssy / Panopto Userstyle
Created February 6, 2012 14:43
Doubles the width of the left hand column
@-moz-document url-prefix("http://replay.aston.ac.uk/Panopto/Pages/Sessions") {
.leftcolumn { width: 504px;}
.rightcolumn { margin-left: 504px; }
}