// googlesecure.js
//
// Copyright (C) 2007-2008 Christer Edwards <christer.edwards@ubuntu.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this link.
//
// To uninstall, go to Tools/Greasemonkey/Manage User Scripts...,
// select "GoogleSecure", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ChangeLog
// 2007-07-03 - 0.1 - initial - initial release.
// - based on the original GmailSecure by Mark Pilgrim
// 2007-07-05 - 0.2 - added spreadsheets, bookmarks and history
// 2008-03-21 - 0.3 - added twitter.com
//
// ==UserScript==
// @name			GoogleSecure
// @namespace			http://zelut.org/projects/greasey/
// @description			force (supported) websites to use secure https
// @include			http://mail.google.com/*
// @include			http://www.google.com/reader/*
// @include			http://www.google.com/calendar/*
// @include			http://docs.google.com/*
// @include			http://spreadsheets.google.com/*
// @include			http://www.google.com/bookmarks/*
// @include			http://www.google.com/history/*
// @include			http://twitter.com/*
// ==/UserScript==

location.href = location.href.replace(/^http:/, 'https:');

