so as you about to learn, I don't know javascript, but this seems like it should work:
var whitelistURLPartials = ["ae\=Folder","ae\=Item\&t\=IPM\.Note"];
var current = window.location.href;
for (var whitelist in whitelistURLPartials)
{
if(current.match(whitelist))
{
window.setTimeout(function(){document.location.reload(true)},1000*60);
break;
}
}
but i get 6: ReferenceError: Can't find variable: whitelistURLPartials
this is in a safari extension if it matters.
EDIT:
It seems that Safari was keeping every version of the .js file from every changed version of the extension loaded. I had to restart Safari to clear them.
Safari Had kept the old scripts in memory and running them every time my extension hit the domain that it was set to work on. I had to restart the Safari Process.
thanks to everyone who helped point me in the correct direction.