Google Secure Pro

By contarc Last update May 22, 2010 — Installed 44,917 times.

Optimization

in
Subscribe to Optimization 2 posts, 2 voices



Bob3333 User
FirefoxWindows

Why reload the page if it's already SSL?

var url = window.location.href;

if (url.substring(0,7) == 'http://') {
window.location.replace(url.replace(url.substring(0,7), 'https://'));
}

 
contarc Script's Author
OperaWindows

Thanks for the suggestion. This has been implemented.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel