<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 10:21 PM, Jacob Hoffman-Andrews <span dir="ltr"><<a href="mailto:jsha@newview.org" target="_blank">jsha@newview.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br></div><div class="im">
Nick said:<br>
> Maybe we can default-off switchPlannerMode on extension load?<br>
<br>
</div>Will do. I think I'll also put a 1-hour or 24-hour timer on it to<br>
automatically turn it off when not in active use. That also mitigates<br>
the fact that this serves an alternate copy of browser history when it's<br>
turned on. Speaking of which, do you know any way to listen for "clear<br>
browser history" events so we can clear our caches?<br>
<br></blockquote><div><br></div><div>Looks like this does the trick: chrome.history.onVisitRemoved.addListener(...) [<a href="https://developer.chrome.com/extensions/history.html">https://developer.chrome.com/extensions/history.html</a>]</div>

<div><br></div></div><div class="gmail_extra">You could hackishly make this better by setting your own canary history URL: chrome.history.addUrl('fake-https-switch-planner.domain')</div><div class="gmail_extra"><br>

</div><div class="gmail_extra">I think this would trigger a new permissions warning in the manifest.js though ... bleh.</div><div><br class=""><br></div>-- <br><div dir="ltr"><span style="font-family:arial;font-size:small">Nick Semenkovich</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">Laboratory of Dr. Jeffrey I. Gordon</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Medical Scientist Training Program</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small">School of Medicine</span><br style="font-family:arial;font-size:small"><span style="font-family:arial;font-size:small">Washington University in St. Louis</span><br style="font-family:arial;font-size:small">

<span style="font-family:arial;font-size:small"><a href="http://nick.semenkovich.com/" target="_blank">http://nick.semenkovich.com/</a></span><br></div>
</div></div>