Skip to content

Instantly share code, notes, and snippets.

@davidmerrick
Forked from constancechen/gist:6252869
Created August 16, 2013 21:36
Show Gist options
  • Save davidmerrick/6253690 to your computer and use it in GitHub Desktop.
Save davidmerrick/6253690 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Unicorn Mode Plugin
// @namespace https://brewspace.jiveland.com/*
// @version 0.1
// @include https://*.brewspace.jiveland.com/*
// @include https://brewspace.jiveland.com/welcome
// @description enter something useful
// @match https://*.brewspace.jiveland.com/*
// @copyright 2012+, You
// ==/UserScript==
$j(document).ready(function(){
$j("a.j-avatar").append('<span class="horseface" style="display: inline-block; width: 45px; height: 45px; background: url(http://i.imgur.com/djV3OMT.png) center no-repeat; position: absolute; right: -15px; top: -15px;"></span>');
$j("#j-globalNav").append('<li id="jive-nav-link-unicorns" class=" jive-nav-link-divider j-globalNav-li j-ui-elem"><a href="#" class="j-globalNavLink j-ui-elem " role="menuitem"><span class="nav-link ">Unicorns</span></a></li>');
$j("#jive-nav-link-unicorns").on('click',
function(){
$j(".horseface").toggle();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment