Skip to content

Instantly share code, notes, and snippets.

@ReneeVandervelde
Created April 11, 2012 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReneeVandervelde/2361486 to your computer and use it in GitHub Desktop.
Save ReneeVandervelde/2361486 to your computer and use it in GitHub Desktop.
Google+ UI tweaks
// Copyright (c) 2011, Max Vandervelde
// Released under the MIT license
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script. To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "Calendar Text Fix", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name Google+ UI Tewaks
// @namespace http://diveintomark.org/projects/greasemonkey/
// @description Google+ Whitespace tweaks
// @include https://plus.google.com/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
btn = document.getElementsByClassName('e-dd');
btn = btn[0];
btn.onclick=function(){addPadding();}
}
addGlobalStyle(
'.tNsA5e-yd { text-align: center ! important;}'+
'.RazREb.ZI35oe.c-wa-Da.ncGWdc { text-align: left !important; }'+
'.iH {width: 797px !important; }'+
'.e-dd { width: 630px; }'
);
function addPadding(){
addGlobalStyle('.Yf96sb {padding-top: 270px !important}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment