title: Youtube Safe Search
body: <p>I am not sure if this question should go here.</p>
  
  <p>How should i change the youtube preference cookie so that safety mode is always on?</p>
  
  <pre><code>PREF=f1=50000000&amp;fms2=30000&amp;fms1=30000&amp;fv=10.3.183
  </code></pre>
  
  <p>This is the pref cookie and <code>fms2</code> changes to <code>10000</code> if safe search is turned off. I used regex replace to replace the text if <code>fms2=10000</code> comes in the cookie. But this doesn't seem to work. How do I change the cookie so that turning off safety-mode will turn it back on due to the cookie replace?</p>