let timerId = setTimeout(function tick() {
timerId = setTimeout(tick, 1000);
var hrefs = document.getElementsByTagName('a');
[].forEach.call(hrefs,function(el){
el.onclick = function (e) {
window.location.href=event.target.href+window.location.search;
return false;
}
});
}, 1000);