First of all, since you are new to the site I hope people will cut you some slack, but you have got to learn how to post a question here properly. It starts with showing what you have attempted by posting some code.
To help you out, start by searching the source code you are trying to modify for the terms you're looking for, e.g. "cookie". Here's what I found in mainPopup.js
. Copy this into a separate script and start building from it. When you have a specific problem with specific code you've tried come back and someone will help you out. And use jsfiddle.net for javascript questions!
//Cookie functions for having the popup only display after a given interval
function setCookie(c_name, value, exdays) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/");
document.cookie = c_name + "=" + c_value;
}
function getCookie(c_name) {
var i, x, y, ARRcookies = document.cookie.split(";");
for (i = 0; i < ARRcookies.length; i++) {
x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
x = x.replace(/^\s+|\s+$/g, "");
if (x == c_name) {
return unescape(y);
}
}
return null;
}