var open_ = window.open;
window.open = function(url, name, opts) {
return open_(url, name, opts);
}
Then you can add your own checking / modifications right before the window is opened.
Use the following command in Linux will do the job: ls -d RepoNames* | xargs -I{} git -C {} pull