Created
April 11, 2012 19:08
-
-
Save ReneeVandervelde/2361486 to your computer and use it in GitHub Desktop.
Google+ UI tweaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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