Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Google Secure
Google sites and apps over SSL
This scripts redirects Gmail, Google Calendar, Google Docs and Spreadsheets, Google Reader and Google Apps from HTTP to HTTPS.
History:
v1.1:
- Added spreadsheets
v1.0:
- first version
You could comment on this script if you were logged in.

login to vote
What difference does it do, having 'window' in the code like your script does?:
window.location.href = window.location.href.replace(/^http:/, 'https:');
Instead of just:
location.href = location.href.replace(/^http:/, 'https:');
Like the http://userscripts.org/scripts/show/5951 'Google Secure Pro' script have.