<div dir="ltr"><div><br></div><div>   Greasemonkey is built into Chrome! Try this!<br><br></div><div>   1) Grab all the code below the line, and save it in a text file called PCHPopupKiller.user.js (Make the edit I suggest below before you save)<br>
</div><div>   2) In Chrome, go to chrome://extensions<br></div><div>   3) Drag and drop this script onto the window<br></div><div>   4) Tell chrome you allow the script. It will install. You can remove it at any time.<br>
<br></div><div>   There's a line in the metadata at the top of the script marked @include - this is a wildcard that you can use to specify which pages this script should run on. You should probably be precise to only specify the particular page (or directory) that this annoying popup is on, so it doesn't interfere with other important business on other PCH pages.<br>
<br></div><div>   Let me know if it works/doesn't work! I'm overwriting the callserver function which may not be the best way to go.<br><br></div><div>   -Jason Cobill<br></div><div><br><br></div>-- SCRIPT BELOW THIS LINE --------------------------------------------- VVV ------ <br>
<div><br>// ==UserScript==<br>// @name           PCH PopupKiller<br>// @namespace  <a href="http://www.lunarbovine.com/PCHPopuKiller">http://www.lunarbovine.com/PCHPopuKiller</a><br>// @description   Gets rid of annoying session popups on PCH pages<br>
// @version         0.1<br>// @include         <a href="http://pch.gc.ca/*">http://pch.gc.ca/*</a><br>// ==/UserScript==<br><br><br>    function callserver()<br>    {<br>       <br>        var extend_session = true;<br>        if (extend_session == true)<br>
        {<br>            var remoteURL = '//includes/session.cfm';<br>            $.get(remoteURL,  function(data){<br>                //do nothing<br>            });<br>        }<br>           <br>    }<br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 10:30 AM, Michael Lechasseur <span dir="ltr"><<a href="mailto:mlecha@artengine.ca" target="_blank">mlecha@artengine.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you think it would be easiest to inject JS with a Chrome Extension for that specific site?<br>
<br>
I'm not sure of how else I would be able to override the function?<br>
<br>
Thanks for the replies!<div class="im HOEnZb"><br>
<br>
<br>
On 10/06/2014 10:08 AM, Alan Gardner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
"confirm" is a JS method which creates a yes/no dialog. You probably need the $.get(remoteURL) call to update a session cookie. Your best bet is to override callServer with the exact same code, but instead of confirm use var extend_session=true<br>

<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Lab mailing list<br>
1. subscribe <a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/<u></u>listinfo/lab</a><br>
2. then email <a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a> to send your message to the list<br>
</div></div></blockquote></div><br></div>