if(!localStorage.getItem('url')) localStorage.setItem('url', document.location);
var url = localStorage.getItem('url');
var t = localStorage.getItem('i');
if(location.href.indexOf('html?geo')>-1){
location.href=localStorage.getItem('url');}
setTimeout(function(){
console.log(t, url);
if(t>=20){localStorage.clear(url, t);document.getElementsByClassName('Paginator_arr')[1].click();}
var q =document.getElementsByClassName('LandingPageListElement_link h_visited_link vacancy-url ng-isolate-scope')[3].href;
location.href=q;
localStorage.setItem('i', ++t); console.log(t);},2000);
try{
setInterval(function(){document.getElementsByClassName('sj_btn m_green VacancySendResumeButton_btn')[1].click();
document.getElementsByClassName('js-application-submit sj_btn m_blue')[1].click();},1000);}catch(e){}
//if(location.href.indexOf('.html?search')<-1){setTimeout(function(){history.back();},3000);}
не очищается когда t >20 . и скрипт выдавать ошибки начинает