Professional Documents
Culture Documents
(function () {
'use strict';
ajaxAR();
})();
function ajaxAR() {
GM_xmlhttpRequest({
method: "GET",
url: window.location.href,
onload: function (r) {
setTimeout(function () {
//console.log(r.finalUrl);
var url = window.location.href;
var a;
if (url.includes("conversion_name")) {
a = url.split("?conversion_name")[0];
}
else {
a = url.split("?secret")[0];
}
var id = a.split("tasks/")[1];
if (r.finalUrl.includes("view")) { // task grabbed
window.location.href = r.finalUrl;
}
else if (r.responseText.includes("maximum")) {
//GM_setValue(id, false);
window.close();
//alert("You have done the maximum amount")
}
else if (r.responseText.includes("completed all your work")) {
//GM_setValue(id, false);
window.close();
//alert("Completed")
}
else if (r.responseText.includes("Expired")) {
//GM_setValue(id, false);
//window.history.back();
window.close();
//alert("Link expired")
}
else {
counter++;
document.title = counter + " " + jobTitle;
ajaxAR();
}
}, 0.00001);
}
})
}
}