HTTP to HTTPS

By TheNadz Last update Feb 27, 2009 — Installed 5,362 times.

? Fix

in
Subscribe to ? Fix 2 posts, 2 voices



fhdns4 User

Hi All,
What I like about this script that it's simple & it does the job perfectly.
I updated the script and the ? bug was gone.

You need to update this line:

document.location.href="https://" + window.location.host + window.location.pathname;

To be:

document.location.href="https://" + window.location.host + window.location.pathname + window.location.hash + window.location.search;

I have a small question, how i can restrict this script for a particular site?

regards,
Fahad

 
TheNadz Script's Author

Ah, yes. To restrict pages it works on simply change the "// @include *" line to "// @include (insert your site of choice here)".

I need to do some testing to make sure it's working how I'd like it to though. I can't test it at home since I can't find a way to emulate the blocks at my school but, school lets back in tomorrow and I'll see if I can debug any further issues I find. Thanks for the fix!

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