Sunday, February 26, 2012

Gmail Preview Pane Extend


//
// Gmail Preview Pane Extend
// Created by: Chad Huntley
//
//
// --------------------------------------------------------------------
// 
//  Removes the people/advertisement sidebar when using the Preview Pane
//  labs feature, and fixes horizontal scrollbar issues for Firefox
// 
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Gmail Preview Pane Extend
// @namespace     http://elementdesignllc.com/
// @description   Removes the sidebar when using Preview Pane
// @include       http*://mail.google.*/*
// @exclude       
// @version       0.6.1
// @history       0.6.1 Max-width now in pixels
// @history       0.6.0 Set max-width on images
// @history       0.5.0 Remove horizontal scrollbars for Firefox
// @history       0.4.2 Remove sidebar on "undo send"
// @history       0.4.1 Removed extra style
// @history       0.4 Chrome autocomplete now working
// @history       0.3 Now supports both vertical and horizontal split
// @history       0.2 Optimized code, now using GM_addStyle
// @history       0.1b Fix attribute selector for Firefox
// @history       0.1 Initial release
// ==/UserScript==
//
// --------------------------------------------------------------------

//hide the side bar
GM_addStyle('.Bs .Bu:nth-child(2) { display:none; }');
GM_addStyle('.Bs .Bu:nth-child(3) { display:none; }');

//resize images in preview pane
GM_addStyle('.apN .nH img { max-width:600px!important; }');

//remove horizontal scroll bars on Firefox
GM_addStyle('.apP .nH { width:98%!important; }');
GM_addStyle('.apN .nH { width:99.5%!important; }');

0 comments:

Post a Comment