/* Kandideeri.ee — Recrur apply redirect for imported jobs (SJB-safe, idempotent) */ (function () { "use strict"; if (window.__KAND_RECRUR_APPLY_REDIRECT__) return; window.__KAND_RECRUR_APPLY_REDIRECT__ = true; function findRecrurApplyUrl() { // 1) prefer application form const a1 = document.querySelector('a[href*="app.recrur.com/public/link/"]'); if (a1 && a1.href) return a1.href; // 2) fallback to public job ad const a2 = document.querySelector('a[href*="candidate.recrur.com/public/jobad/"]'); if (a2 && a2.href) return a2.href; return ""; } function isApplyButton(el) { if (!el) return false; // common clickable elements const tag = (el.tagName || "").toUpperCase(); if (!["A", "BUTTON", "INPUT"].includes(tag)) return false; // match by visible text/value const txt = (el.innerText || el.value || "").trim().toLowerCase(); if (!txt) return false; // Estonian + possible variants if (txt.includes("soovin kandideerida")) return true; if (txt === "kandideeri" || txt.includes("kandideeri")) return true; return false; } function hijackClick(e) { const target = e.target && e.target.closest ? e.target.closest("a,button,input") : null; if (!target || !isApplyButton(target)) return; const url = findRecrurApplyUrl(); if (!url) return; // do nothing if not a Recrur-imported job // Redirect to Recrur instead of internal apply flow e.preventDefault(); e.stopPropagation(); window.location.assign(url); } // Capture phase to override SJB handlers document.addEventListener("click", hijackClick, true); })(); Skip to main content
Tagasi

Georgi hotell Võru kesklinnas koos restorani ja ilusalongiga.