Skip to content

Instantly share code, notes, and snippets.

View eojthebrave's full-sized avatar

Joe Shindelar eojthebrave

View GitHub Profile
@eojthebrave
eojthebrave / yammer_test.html
Created November 16, 2012 17:52
Yammer | OAuth 2 | Implicit Grant
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {
var match = hash.match(/access_token=(\w+)/);
return !!match && match[1];
};
@eojthebrave
eojthebrave / yammer.css
Last active October 8, 2015 07:07 — forked from q0rban/yammer.css
Fluid Userstyle for Yammer
div.page-content.two-column-layout,
.column-two-left,
.yj-main-content{
margin-left: auto !important;
margin-right: auto !important;
width: 500px !important;
}
#column-two {
width: 100% !important;
@eojthebrave
eojthebrave / gist:2854188
Created June 1, 2012 18:25
Alfred App Custom Searches
# Search the Drupal 7 API
alfredapp://customsearch/Drupal%207%20API/dp/ascii/url=http://api.drupal.org/api/search/7/{query}
# Search the Drupal 6 API
alfredapp://customsearch/Drupal%206%20API/dp6/ascii/url=http://api.drupal.org/api/search/6/{query}
# Enter a module/theme name and go right that page
alfredapp://customsearch/Drupal%20Project/dpp/ascii/url=http://drupal.org/project/{query}
# Use Google to search drupal.org
@eojthebrave
eojthebrave / gist:2013772
Created March 10, 2012 22:50
Yammer Fluid App Userstyle.
body,
div.page-content.two-column-layout,
div.page-content.three-column-layout {
background: none !important;
}
.two-column-layout #column-two {
margin-top: 0px;
}
@eojthebrave
eojthebrave / gist:2013763
Created March 10, 2012 22:48
Yammer fluid.add growl support
(function () {
if (window.fluid) {
var last_message_id = 0
// hide the system_notice banner after 10 seconds!
window.setTimeout(function() {
$("system_notice").hide();
}, 10*1000);
window.setInterval(function() {
@eojthebrave
eojthebrave / fluid-yammer-dock-badge.js
Created October 20, 2011 13:57
Userscript: provide a Fluid.app dock badge for yammer.com unread messages.
// ==UserScript==
// @name fluid-dock-badge
// @namespace http://fluidapp.com
// @description Dock badge for unread messages on Yammer.com
// @include *
// @author Joe Shindelar (eojthebrave)
// ==/UserScript==
(function ($) {
if (window.fluid) {
setInterval(dockBadge, 5000);