Ssd Laptop

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 19 October 2012

Force Gmail to share the tab with another page!

Posted on 12:34 by Unknown
If you're like me, you probably leave Gmail open somewhere for easy access. This might not ever be a problem if you aren't working on a complex project or if you have multiple monitors (or use Dexpot properly), but I find that my Gmail tab has an annoying habit of wandering off somewhere, forcing me to chase it down every now and then.

Also, I don't know about you, but I generally don't need to read more than the first 20 words of the subject line of emails sitting in my inbox. The normal Gmail email display stretches across the entire width of the page- with most monitors, it's total overkill - I care more about the vertical content (separate emails) than the horizontal content (subject lines)... (see photo). So yesterday I thought, 'wouldn't it be nice if I could have Gmail share the same page/tab with my to-do/note-taking platform?'

I whipped up some code and have since been absolutely loving my new Gmail page. I simply added a little button on the right that will resize Gmail and display my WorkFlowy on click. You can use Advanced Page Injector Chrome Extension to have it automatically inject the code for you (so just copy and paste below!). Just change the workflowy.com to yourtaskmanagerofchoice.com (e.g. asana) where it says src="http://www.workflowy". Also, if you use a Chrome Extension that doesn't automatically include jQuery (the linked one does not), also copy and paste this into your '^https://mail.google.com' rule.

Also be sure to check out my Workflowy chrome extension.

Here's the code (it even includes a keyboard shortcut CTRL+q to open/close workflowy!):


var initialSetup = function() { $('#workflowygmailbutton').remove(); $('#wfiframegmail').remove(); var button = "<button id='workflowygmailbutton'>|||</button>"; $('body').after(button); var buttoncss2 = "button#workflowygmailbutton {width: 20px; display:inline-block; position:absolute; top: -20px; right: 2px;; width:20px;font-size:23px;border:0;background-color:white;color:#4747D1; height:100%; padding: 0 0; margin: 0 auto;-webkit-appearance: caret;cursor:pointer;} button#workflowygmailbutton:hover {-webkit-box-shadow: inset 4px 4px 2px blue; opacity: .5;}"; $("head").append("<style id='dynamicStylesheet'></style>"); $("#dynamicStylesheet").text(buttoncss2); $('#workflowygmailbutton').css('z-index','9999'); $('#workflowygmailbutton').click(function(){openWorkflowy();}); var workflowy = "<iframe src='http://www.workflowy.com' id='wfiframegmail' name='wfiframegmail' style='display:none; z-index:9999'></iframe>"; $('#workflowygmailbutton').after(workflowy); var elstoattack = $('html'); initialPosition(); killbuttons(); } var killbuttons = function(){ $("div[role='button']").css('min-width', '0px'); rapportivewidth = $("div.nH[role='main']").width() * .22; $("#rapportive-sidebar > *").css('max-width', rapportivewidth); $("#rapportive-sidebar").css('z-index', '0'); $('.dw').css('z-index', '2') $("ol.sections").css('width', rapportivewidth); } var initialPosition = function() { windowwidth = window.document.width; newstartwidth = windowwidth - 20; if (windowwidth < 1715) {newstartwidth = 1576;}; if (windowwidth > 1714) {newstartwidth = 1891;}; $(elstoattack).css('max-width', newstartwidth); $('#wfiframegmail').css('display','none'); $('#workflowygmailbutton').css('top', '0') $('#workflowygmailbutton').css('right', '1px'); $('#workflowygmailbutton').unbind('click'); $('#workflowygmailbutton').click(function(){openWorkflowy();}); } var openWorkflowy = function(){ killbuttons(); windowwidth = window.document.width; newwidth = windowwidth * .48; if (newwidth > 910) {newwidth = 1005;}; if (newwidth < 791) {newwidth = 833;}; $(elstoattack).css('max-width',newwidth); $('#workflowygmailbutton').css('right', '46.4%'); $('#workflowygmailbutton').unbind('click'); $('#workflowygmailbutton').click(function(){initialPosition();}); $('#wfiframegmail').css('display','inline'); $('#wfiframegmail').css('position','absolute'); $('#wfiframegmail').css('right','0px'); $('#wfiframegmail').css('width', '46%'); $('#wfiframegmail').css('top','0'); $('#wfiframegmail').css('height','100%'); }; var elstoattack = $('html'); initialSetup(); window.isCtrl = false; $(document).ready(function(){ $(window).keyup(function (e) { if(e.which == 17) window.isCtrl=false; }).keydown(function (e) { if(e.which == 17) window.isCtrl=true; if(e.which == 81 && window.isCtrl == true) { $('#workflowygmailbutton').click() return false; } if(e.which == 220 && window.isCtrl == true) { $('#gbqfq').select(); return false; } }); })
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in asana, gmail, productivity, share gmail with another page, task management, workflowy | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to upgrade the SSD in your Samsung Series 9 NP900X4C or NP900X3B/C Ultrabook
    -----UPDATE------ If you'd like to see some photos of ultrabook internals (including what the mSata form factor looks like), see some of...
  • Use Milkdrop with Spotify - SOLVED
    So I decided to give Spotify a go a while back, and so far have been enjoying it. However, it really won't do to part ways with the best...
  • Isn't it about time you switched to a standing desk?
    The idea of switching to a standing desk has plenty of initial appeal, but isn't so easy to realize (it might seem). And the longer you ...
  • How to Fix the Lenovo Yoga Fan Noise & Upgrade SSD // RAM
    ~~Update - 1/13/2013~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ After using the Yoga for almost two months, I am pleased to report that I a...
  • In-dash hack for Droid Bionic Car Dock
    I never used the stock Nav system so I took it out and sold it, leaving a hole in the dash. After tinkering for a bit, I decided to put the ...
  • Port Dock for Samsung np900x3b (2012 series 9)
    I love this Samsung ultrabook- so much that I even dock it at home to my monitor/tv + external keyboard/mouse. However, I find it annoying t...
  • LED Light Staff (3d Printed Bo Staff w/LEDs)
    I've been looking for a new form of entertainment at music festivals (aside from the music) and decided Bojutsu might be fun. I came up ...
  • Samsung Series 9 2012: np900x3b-a01 vs np900x3b-a02
    I now have both of these. Picked up the A01 from a local Bestbuy (4/11/2012) in AA, MI. Apparently they were the first to get one (of any st...
  • Build a bossy 3D Printer Cave #ikeahacks
    It started with a desire to reduce the noise and insulate the heat generated by my Replicator, but as techneesh grew, I found the need to h...
  • How to Make Pebble Watch Control Spotify on Android Using Bluetooth!
    I just got my Pebble watch today - which is awesome. I've been wanting an e-ink bluetooth bridge to my phone for a while now and when I ...

Categories

  • 3d printing
  • 8gb ram
  • 8gb upgrade ram
  • aero snap
  • allgood
  • asana
  • bass head
  • bluetooth spotify
  • bo staff
  • bojutsu
  • bonnaroo
  • control spotify pebble
  • davincisnightmare
  • diy bo staff
  • electric forest
  • fix fan noise lenovo yoga
  • fix spotify for windows hotkeys
  • fix yoga fan noise
  • fix yoga keyboard stopping working
  • gmail
  • hacking
  • how to wall mount a computer
  • ikeahacks
  • keyboard mouse bug
  • led juggling balls
  • led staff
  • led toys
  • lenovo yoga
  • lenovo yoga fan noise
  • light-up juggling balls
  • makerbot
  • mba
  • music festival
  • normal window behavior spotify
  • np900x3b
  • np900x4c
  • pebble
  • pebble android
  • pebble bluetooth
  • pebble spotify
  • pebble watch
  • productivity
  • ram upgrade
  • rave gear
  • replicator
  • rothbury
  • samsung
  • samsung series 9
  • samsung ultrabook
  • sd slot
  • series 9
  • series 9 2012
  • share gmail with another page
  • solidoodle
  • spotify windows snap
  • ss9
  • task management
  • techneesh
  • thingiverse
  • ultrabook
  • upgrade samsung series 9
  • upgrade ssd
  • upgrade ssd yoga
  • upgrade yoga ram
  • wall mounted pc
  • wall-mounted computer
  • windows snap-to
  • workflowy
  • yoga fan noise
  • yoga grinding
  • yoga making noise
  • yoga pcie

Blog Archive

  • ►  2013 (7)
    • ►  October (1)
    • ►  May (2)
    • ►  April (1)
    • ►  February (3)
  • ▼  2012 (19)
    • ►  November (2)
    • ▼  October (2)
      • Force Gmail to share the tab with another page!
      • Fix Windows' Snap-To Hotkeys for Spotify AND Contr...
    • ►  September (1)
    • ►  July (3)
    • ►  June (1)
    • ►  May (3)
    • ►  April (6)
    • ►  March (1)
  • ►  2011 (4)
    • ►  November (1)
    • ►  September (3)
Powered by Blogger.

About Me

Unknown
View my complete profile