javascript

Tab Wrangler or how I stopped thrashing and learned to close my tabs

Right now, on my computer, Chrome is using 1.2GB of RAM with 3 tabs open. After 20 tabs, it's hovering around 3GB. Back in the bad old days, I would easily have 30 tabs open at any given moment, and sometimes another 15-20 in other windows.

My name is Jacob, and I am a tab addict.

One particularly hot day my computer just turned itself off in a moment of kernel panic. I had hit rock bottom.
err... no more like this:

Then I discovered Tab Wrangler and started making amends with my poor abused 'puter.

I didn't really need those tabs open, I was just hording because I didn't want to deal with deciding if I cared. Turns out I didn't really, and you don't either.

Tab Wrangler is a Chrome extension, originally written by Jack Angers in 2010. Here's how it works:

  • Auto-closes tabs which have been inactive for a certain amount of time
  • You configure how long to wait before closing them, and how many tabs is an ideal amount
  • If a tab is closed, Tab Wrangler saves it in its own history so you can get it back
  • What about pinned tabs? Or tabs you never want to close? Yep, handles that too, you can whitelist tabs or domains as evergreen and they will never be closed


I

Tags: 

Adding SOPA blackout to a Drupal Gardens

If you want to blackout your site in protest of SOPA/PIPA, here's what you gotta do:

(hat tip to http://www.zachstronaut.com for the blackout page).

Important: Keep the url mysite.drupalgardens.com/admin/content handy. 

Once you follow these instructions, your site will go dark (if it is January 18th 2012).  If you want to get it back, you will need to delete the block later.

  1. Navigate to Structure -> Blocks
  2. Click on "Add Block"
  3. In the "Body" use the dropdown to change from "Safe HTML" to "Full HTML" (the buttons will go away)
  4. Make the block show by setting a region.
  5. Copy the following and paste it into the body:

 


<

div>

<script type="text/javascript">
    var a = new Date;
    if (18 == a.getDate() && 0 == a.getMonth() && 2012 == a.getFullYear()) {
        window.onload = function () {
            var cover = document.createElement('div');
            cover.style.position = 'fixed';
            cover.style.zIndex = 9999999;
            cover.style.width = window.innerWidth + 'px';
            cover.style.height = window.innerHeight + 'px';
            cover.style.top = 0;
            cover.style.backgroundColor = '#000';
            cover.innerHTML = '<iframe

Tags: 

My first Chrome extension - Tab Buffet

This morning I woke with so many tabs open even the icons were hidden.  It was a momment of tab gluttony shame.  I had been at the all-you-can-eat Internet buffet until late in the night, and it got ugly.  

 

So, having put in a stupid long day yesterday, I decided to take a break from DrupalGardens work and build a little Chrome extension to track how many tabs I have open over time.

I present: Tab Buffet

 

It's totally alpha code, but if you want to try it out you can install it here. Fork me on GitHub

Tags: 

Subscribe to javascript