<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on Google Secure Pro | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/5951</link>
    <description>Recent comments on userscript: Google Secure Pro</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Request, replied by Text</title>
      <description>&lt;p&gt;I like the Google Secure Pro. Very functional. Very practical. Thanks for making it!&lt;/p&gt;

&lt;p&gt;Is it supposed to secure Google search too? Because that just stays regular http. &lt;/p&gt;

&lt;p&gt;I was hoping there was a way to force all google searches to use&lt;/p&gt;

&lt;p&gt;httpS://&lt;a href=&quot;http://www.google.com/search?q&quot;&gt;www.google.com/search?q&lt;/a&gt;=
&lt;br /&gt;instead of the javascript its using now as
&lt;br /&gt;&lt;a href=&quot;http://www.google.com/#hl&quot;&gt;http://www.google.com/#hl&lt;/a&gt;=
&lt;br /&gt;I could just block javascript but then I couldn't use the auto suggestion feature on Google home page and the cursor doesn't automatically default to the text field.&lt;/p&gt;

&lt;p&gt;Maybe this should be an entirely separate script. I don't know. Your call.&lt;/p&gt;

&lt;p&gt;If you can do this, please let me know.
&lt;br /&gt;itsText (@) gmail {.} com&lt;/p&gt;</description>
      <pubDate>Mon, 02 Nov 2009 08:24:56 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:38717:185987</guid>
      <author>Text</author>
      <link>http://userscripts.org/posts/185987</link>
    </item>
    <item>
      <title>Optimizations, replied by Erik Vold</title>
      <description>&lt;p&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;a href=&quot;/users/23652&quot;&gt;JoeSimmons&lt;/a&gt;&lt;/strong&gt;&amp;nbsp;&lt;a href=&quot;/topics/27083#posts-122758&quot;&gt;wrote&lt;/a&gt;:
&lt;br /&gt;Took out Regex (Regex is slow), put in substring&lt;/blockquote&gt;&lt;/p&gt;

&lt;p&gt;No you didn't, the substring is converted into a Regex which is used by replace(), this is slower I believe because the JS engine must convert the provided string into a regex before it can do it's work.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;window.location.replace(url.replace(url.substring(0,7), &amp;#39;https://&amp;#39;));
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the above the substring function needs to lookup '&lt;a href=&quot;http://&quot;&gt;http://&lt;/a&gt;' then '&lt;a href=&quot;http://&quot;&gt;http://&lt;/a&gt;' needs to be converted in to /http:\/\//&lt;/p&gt;

&lt;p&gt;Here is what I suggest:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;(function(){
&lt;br /&gt;var l=window.location;
&lt;br /&gt;l.replace(l.href.replace(/^http:/, &amp;#39;https:&amp;#39;));
&lt;br /&gt;})();
&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;using &lt;code&gt;(function(){ ... })();&lt;/code&gt; inside the userscript because some userscript clients may not have a safe scope for the variables we create. There may not be a need for this currently though..&lt;/p&gt;</description>
      <pubDate>Mon, 02 Nov 2009 00:04:46 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27083:185917</guid>
      <author>Erik Vold</author>
      <link>http://userscripts.org/posts/185917</link>
    </item>
    <item>
      <title>No longer working in many countries, replied by contarc</title>
      <description>&lt;p&gt;Thank you for reporting this.&lt;/p&gt;

&lt;p&gt;I am investigating it and will post further information.&lt;/p&gt;</description>
      <pubDate>Sun, 01 Nov 2009 15:21:30 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:32655:185808</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/185808</link>
    </item>
    <item>
      <title>Optimization, replied by contarc</title>
      <description>&lt;p&gt;Thanks for the suggestion.  This has been implemented.&lt;/p&gt;</description>
      <pubDate>Sun, 01 Nov 2009 15:16:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36171:185806</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/185806</link>
    </item>
    <item>
      <title>Optimization, replied by Bob3333</title>
      <description>&lt;p&gt;Why reload the page if it's already SSL?&lt;/p&gt;

&lt;p&gt;var url = window.location.href;&lt;/p&gt;

&lt;p&gt;if (url.substring(0,7) == '&lt;a href=&quot;http://'&quot;&gt;http://'&lt;/a&gt;) { 
&lt;br /&gt;  window.location.replace(url.replace(url.substring(0,7), '&lt;a href=&quot;https://'))&quot;&gt;https://'))&lt;/a&gt;;
&lt;br /&gt;  }&lt;/p&gt;</description>
      <pubDate>Tue, 29 Sep 2009 06:20:06 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:36171:174260</guid>
      <author>Bob3333</author>
      <link>http://userscripts.org/posts/174260</link>
    </item>
    <item>
      <title>No longer working in many countries, replied by Chris4</title>
      <description>&lt;p&gt;It appears that HTTPS is no longer accepted with many Google URLs.&lt;/p&gt;

&lt;p&gt;The error message is &quot;This Connection is Untrusted&quot; (screenshot below).&lt;/p&gt;

&lt;p&gt;I first experienced it on Google Reader (UK) and then I tested normal Google (UK), both of which came up the error.&lt;/p&gt;

&lt;p&gt;I noticed that .com worked fine, but tested other country URLS such as: &lt;a href=&quot;https://www.google.bg/&quot;&gt;.bg&lt;/a&gt;, &lt;a href=&quot;https://www.google.jp/&quot;&gt;.jp&lt;/a&gt;, &lt;a href=&quot;https://www.google.si/&quot;&gt;.si&lt;/a&gt;, &lt;a href=&quot;https://www.google.se/&quot;&gt;.se&lt;/a&gt;, etc. and found that they don't work with HTTPS either.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://img197.imageshack.us/i/lolzmq.png/&quot;&gt;&lt;img src=&quot;http://img197.imageshack.us/img197/9445/lolzmq.th.png&quot; alt=&quot;Free Image Hosting at www.ImageShack.us&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 12 Aug 2009 04:18:08 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:32655:157153</guid>
      <author>Chris4</author>
      <link>http://userscripts.org/posts/157153</link>
    </item>
    <item>
      <title>International TLDs, replied by contarc</title>
      <description>&lt;p&gt;Thanks for the suggestion. This has been implemented.&lt;/p&gt;</description>
      <pubDate>Tue, 19 May 2009 14:29:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27103:123291</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/123291</link>
    </item>
    <item>
      <title>Optimizations, replied by contarc</title>
      <description>&lt;p&gt;Thanks for the suggestion. This has been implemented.&lt;/p&gt;</description>
      <pubDate>Tue, 19 May 2009 14:29:00 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27083:123290</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/123290</link>
    </item>
    <item>
      <title>International TLDs, replied by traknar</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Could you please replace the .com TLD by the generic one which works for all TLDs?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.google.tld/webmasters/&quot;&gt;http://www.google.tld/webmasters/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.tld/notebook/&quot;&gt;http://www.google.tld/notebook/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://knol.google.tld/&quot;&gt;http://knol.google.tld/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://sites.google.tld/&quot;&gt;http://sites.google.tld/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://groups.google.tld/&quot;&gt;http://groups.google.tld/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.tld/history/&quot;&gt;http://www.google.tld/history/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.tld/bookmarks/&quot;&gt;http://www.google.tld/bookmarks/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.tld/reader/&quot;&gt;http://www.google.tld/reader/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://spreadsheets.google.tld/&quot;&gt;http://spreadsheets.google.tld/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://docs.google.tld/&quot;&gt;http://docs.google.tld/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.tld/calendar/&quot;&gt;http://www.google.tld/calendar/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://mail.google.tld/&quot;&gt;http://mail.google.tld/&lt;/a&gt;*&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
      <pubDate>Mon, 18 May 2009 12:04:53 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27103:122919</guid>
      <author>traknar</author>
      <link>http://userscripts.org/posts/122919</link>
    </item>
    <item>
      <title>Optimizations, replied by JoeSimmons</title>
      <description>&lt;p&gt;&lt;h3&gt;Optimizations&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Used top scope object to stop reduce scope chain (window.location.href)&lt;/li&gt;&lt;li&gt;Used .replace so the http url isn't in the history, only the https url&lt;/li&gt;&lt;li&gt;Took out Regex (Regex is slow), put in substring&lt;/li&gt;&lt;li&gt;Used variable to quicken substring and lookup&lt;/li&gt;&lt;/ol&gt;&lt;pre&gt;var url = window.location.href;
window.location.replace(url.replace(url.substring(0,7), 'https://'));&lt;/pre&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 18 May 2009 00:25:37 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:27083:122758</guid>
      <author>JoeSimmons</author>
      <link>http://userscripts.org/posts/122758</link>
    </item>
    <item>
      <title>Archived Comments, replied by Master of Puppets</title>
      <description>&lt;p&gt;Yes, Google goofed on that:)&lt;/p&gt;</description>
      <pubDate>Sat, 02 Aug 2008 17:29:42 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24435</guid>
      <author>Master of Puppets</author>
      <link>http://userscripts.org/posts/24435</link>
    </item>
    <item>
      <title>Archived Comments, replied by contarc</title>
      <description>&lt;p&gt;&lt;a href=&quot;http://gmailblog.blogspot.com/2008/07/making-security-easier.html&quot;&gt;http://gmailblog.blogspot.com/2008/07/making-se...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google finally adds 'always use https' option to Gmail.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jul 2008 17:04:01 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24436</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/24436</link>
    </item>
    <item>
      <title>Archived Comments, replied by contarc</title>
      <description>&lt;p&gt;FF3user:  Here is a thread addressing your question.   &lt;a href=&quot;http://bytes.com/forum/thread148000.html&quot;&gt;http://bytes.com/forum/thread148000.html&lt;/a&gt;   Basically it boils down to it being implied when you do not specify 'window'.&lt;/p&gt;

&lt;p&gt;Differences between Google Secure and Google Secure Pro:&lt;/p&gt;

&lt;p&gt;Google Secure forces SSL on 
&lt;br /&gt;&lt;a href=&quot;https://www.google.com/accounts/&quot;&gt;https://www.google.com/accounts/&lt;/a&gt;* 
&lt;br /&gt;&lt;a href=&quot;https://www.google.com/a/&quot;&gt;https://www.google.com/a/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://mail.google.com/a/&quot;&gt;http://mail.google.com/a/&lt;/a&gt;*.&lt;/p&gt;

&lt;p&gt;Google Secure Pro forces SSL on 
&lt;br /&gt;&lt;a href=&quot;http://mail.google.com/&quot;&gt;http://mail.google.com/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.com/calendar/&quot;&gt;http://www.google.com/calendar/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://docs.google.com/&quot;&gt;http://docs.google.com/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://spreadsheets.google.com/&quot;&gt;http://spreadsheets.google.com/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.com/reader/&quot;&gt;http://www.google.com/reader/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.com/bookmarks/&quot;&gt;http://www.google.com/bookmarks/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://www.google.com/history/&quot;&gt;http://www.google.com/history/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://groups.google.com/&quot;&gt;http://groups.google.com/&lt;/a&gt;*
&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/&quot;&gt;http://sites.google.com/&lt;/a&gt;*&lt;/p&gt;

&lt;p&gt;I do not include google.com/accounts because this page is already SSL forced.  Same with google.com/health.&lt;/p&gt;

&lt;p&gt;No idea why Google doesn't force Gmail to use this by default.  It's just plain silly on their part.&lt;/p&gt;</description>
      <pubDate>Thu, 24 Jul 2008 23:33:02 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24437</guid>
      <author>contarc</author>
      <link>http://userscripts.org/posts/24437</link>
    </item>
    <item>
      <title>Archived Comments, replied by FF3user</title>
      <description>&lt;p&gt;Hey...
&lt;br /&gt;What difference does it do, not having 'window' in the code like your script doesn't?:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;location.href = location.href.replace(/^http:/, 'https:');
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;Contrary to this:
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;window.location.href = window.location.href.replace(/^http:/, 'https:');
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;Like the &lt;a href=&quot;http://userscripts.org/scripts/show/8311&quot;&gt;http://userscripts.org/scripts/show/8311&lt;/a&gt; 'Google Secure' script have.&lt;/p&gt;

&lt;p&gt;And what is the difference between your script and this script: &lt;a href=&quot;http://userscripts.org/scripts/show/26175&quot;&gt;http://userscripts.org/scripts/show/26175&lt;/a&gt; 'Secure GMail'?&lt;/p&gt;

&lt;p&gt;Also: Why doesn't Gmail do this by default? Why not use https all the time? there must be a reason?&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jun 2008 20:43:20 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24438</guid>
      <author>FF3user</author>
      <link>http://userscripts.org/posts/24438</link>
    </item>
    <item>
      <title>Archived Comments, replied by LilJonny53</title>
      <description>&lt;p&gt;very nice (note: be sure to adjust other scripts, that you may have installed, that apply to the Google service affected by this script, so the scripts continue to work correctly with the change in security configuration)&lt;/p&gt;</description>
      <pubDate>Tue, 01 Apr 2008 03:04:31 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24439</guid>
      <author>LilJonny53</author>
      <link>http://userscripts.org/posts/24439</link>
    </item>
    <item>
      <title>Archived Comments, replied by gabedibble</title>
      <description>&lt;p&gt;&lt;b&gt;Author:&lt;/b&gt; Please check out &lt;a href=&quot;http://userscripts.org/scripts/show/2296&quot;&gt;&lt;b&gt;User Script Updates&lt;/b&gt;&lt;/a&gt; - simply update the header of your script and your users will be able to receive change-notification when you improve this script&lt;/p&gt;</description>
      <pubDate>Sun, 08 Apr 2007 21:40:18 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24440</guid>
      <author>gabedibble</author>
      <link>http://userscripts.org/posts/24440</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:06:05 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:10753:24434</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/24434</link>
    </item>
  </channel>
</rss>
