title: Change all occurrences of "http" to "https" on a wordpress page
body: <p>I am in the process of implementing SSL on some of my wordpress-powered site's pages.
  Currently I'm getting mixed content warnings on the secured pages - my custom theme includes a lot of links and src attributes that occur on all pages. Links appear in the header, footer, the navigation (auto generated by wordpress function) and the sidebar (partially from a plugin). While I could theoretically write a custom header and footer for the secured pages, it'd be impossible to use the plugin and the navigation on the secured page.</p>
  
  <p>What I've been trying to accomplish all day is to write a javascript or jQuery function that changes all occurences of "http" to "https" on pages that are served via SSL.</p>
  
  <p>This problem blatantly showed me the limits of my coding capacity. Problematic is that the finally served document consists of several php files, some of which I have little control over (would have to modify plugin(s) which are (A) rather complex and (B) I'd like to update in the future). Also regular expressions are still a mystery to me.</p>
  
  <p>I don't know if this is at all possible and whether triggering the change with <em>$(document).ready</em> or <em>window.onload</em> wouldn't be too late anyway, since the browser will issue the mixed content warning earlier than that.</p>
  
  <p>Thanks in advance, Johannes</p>