chuchotant
I made that batch faaamous
- Joined
- Jan 22, 2016
- Messages
- 966
- Reaction score
- 2,243
- Points
- 493
- Age
- 47
is there a script for these?
Code:
// ==UserScript==
// @name Customer Interests - Product to Interest Audit (Mturk)
// @description Not the worst script ever written...
// @version 0.0.3
// @namespace zeusdapps@gmail.com
// @icon https://dl.dropbox.com/s/hkd52d1wvz6m7pn/Zeus.jpg
// @license https://www.tldrlegal.com/l/mit
// @include https://s3.amazonaws.com/mturk_bulk/hits/*
// ==/UserScript==
/* jshint esnext: true */
(function() {
"use strict";
var sel = document.querySelector.bind(document);
var selAll = document.querySelectorAll.bind(document);
var submit = (function submit() {
setTimeout(function() {
document.querySelector('#submitButton').click();
}, 1000);
});
var keyCap = (function keyCap(e) {
switch (e.which) {
case 49:
sel('#radio-yes').click();
submit();
break;
case 50:
sel('#radio-no').click();
submit();
break;
case 51:
sel('#radio-skip').click();
sel('#comments').focus();
break;
default:
break;
}
});
var fun = (function fun() {
let pageText = document.body.textContent || document.body.innerText;
if (pageText.indexOf("Is the item relevant to the interest") > -1) {
console.log("Zeusd!");
sel('#Survey > div > div').style.display = "none";
selAll('a').forEach(function(entry) {
entry.target = "_blank";
});
window.addEventListener("keyup", keyCap, false);
window.focus();
}
});
window.onlaod = fun();
})();