02/18 - Syrup-y Saturday!

Status
Not open for further replies.

TissueHime

Thread Maker Extraordinaire
Threaderator
Joined
Jan 12, 2016
Messages
5,609
Reaction score
7,629
Points
813
Age
35
Location
Seattle
Gender
Male
Welcome to today's MTurk Crowd work thread!

Please check out the forum guidelines.

Maybe you need some help getting started?

Want more info about how the forum works?

NEW! Would you like to contribute an idea about the future of the forum? Feel free to share your thoughts here.

Please let a mod know if you have any questions, and have a great turking day! - MTC staff



Also join the discord if you want! We have a lot of people on it already but could use more.

If you have a theme that you want to see, title-wise, video-wise, etc. for the new thread I would like to hear suggestions! http://www.mturkcrowd.com/threads/daily-thread-ideas.1250/
 

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
Hello night owls, here is a present.

Code:
// ==UserScript==
// @name         Cliff DesPeaux
// @namespace    https://gist.github.com/Kadauchi
// @version      1.0.0
// @description  Hotel Image Rating
// @author       Kadauchi
// @icon         http://i.imgur.com/oGRQwPN.png
// @include      /^https://(www\.mturkcontent|s3\.amazonaws)\.com/
// @hitsave      https://www.mturkcontent.com/dynamic/hit?hitId=38G0E1M85M4QD3BEYP7BMC8YT7YVU5
// @hitname      Hotel Image Rating
// ==/UserScript==

if (document.getElementsByTagName(`strong`)[0].textContent !== `How much is the image making you want to stay at the hotel?`) return;

function SHOW () {
  for (let i = 0; i < images.length; i ++) images[i].style.display = `none`;
  images[index].style.display = ``;
  counter.textContent = index + 1;

  for (let element of document.querySelectorAll(`[class="rate"]`)) element.style.backgroundColor = ``;
  for (let element of images[index].querySelectorAll(`[type="radio"]`)) if (element.checked) document.querySelector(`[class="rate"][value="${ element.value }"]`).style.backgroundColor = `lightgreen`;
}

function PREV () {
  if (index === 0) return;
  index --;
  SHOW();
}

function NEXT () {
  if (index === 9) return;
  index ++;
  SHOW();
}

document.getElementsByClassName(`container`)[0].insertAdjacentHTML(
  `afterend`,
  `<div class="text-center">` +
  `<button id="prev" style="margin: 3px;" type="button">Previous</button>` +
  `<button class="rate" value="1" style="margin: 3px;" type="button">1</button>` +
  `<button class="rate" value="2" style="margin: 3px;" type="button">2</button>` +
  `<button class="rate" value="3" style="margin: 3px;" type="button">3</button>` +
  `<button class="rate" value="4" style="margin: 3px;" type="button">4</button>` +
  `<button class="rate" value="5" style="margin: 3px;" type="button">5</button>` +
  `<button class="rate" value="6" style="margin: 3px;" type="button">6</button>` +
  `<button class="rate" value="7" style="margin: 3px;" type="button">7</button>` +
  `<button class="rate" value="8" style="margin: 3px;" type="button">8</button>` +
  `<button class="rate" value="9" style="margin: 3px;" type="button">9</button>` +
  `<button class="rate" value="10" style="margin: 3px;" type="button">10</button>` +
  `<button id="next" type="button">Next</button>` +
  `</div>` +
  `<div class="text-center"><span id="counter"></span> / 10</div>`
);

let index = 0;
const images = document.getElementsByClassName(`form-group`);
const counter = document.getElementById(`counter`);

for (let i = 0; i < images.length; i ++) {
  images[i].style.display = `none`;
  images[i].parentElement.className = `text-center`;
  images[i].parentElement.parentElement.className = `text-center`;
}

document.addEventListener(`click`, function (event) {
  const element = event.target;

  if (element.matches(`#prev`)) PREV();

  if (element.matches(`#next`)) NEXT();

  if (element.matches(`.rate`)) {
    document.getElementById(`rating${ index + 1 }-${ element.value }`).click();
    NEXT();
  }
});

window.addEventListener(`keydown`, function (event) {
  const key = event.key;

  if (key.match(/0/)) document.querySelector(`[class="rate"][value="1${ key }"]`).click();
  if (key.match(/[1-9]/)) document.querySelector(`[class="rate"][value="${ key }"]`).click();
  if (key.match(/Enter/)) document.querySelector(`[type="submit"]`).click();
});

SHOW();
 

Jerami

Well-Known Member
Contributor
Crowd Pleaser
HIT Poster
Joined
Jan 24, 2016
Messages
14,405
Reaction score
25,210
Points
2,238
After 'Frappening Friday", I figured today would be Masticating Saturday.:D
 
Last edited:

T. Leela

Oh Lord...
Contributor
Joined
May 12, 2016
Messages
11,050
Reaction score
14,046
Points
1,388
Location
Colorado
Gender
Female
Hello night owls, here is a present.

Code:
// ==UserScript==
// @name         Cliff DesPeaux
// @namespace    https://gist.github.com/Kadauchi
// @version      1.0.0
// @description  Hotel Image Rating
// @author       Kadauchi
// @icon         http://i.imgur.com/oGRQwPN.png
// @include      /^https://(www\.mturkcontent|s3\.amazonaws)\.com/
// @hitsave      https://www.mturkcontent.com/dynamic/hit?hitId=38G0E1M85M4QD3BEYP7BMC8YT7YVU5
// @hitname      Hotel Image Rating
// ==/UserScript==

if (document.getElementsByTagName(`strong`)[0].textContent !== `How much is the image making you want to stay at the hotel?`) return;

function SHOW () {
  for (let i = 0; i < images.length; i ++) images[i].style.display = `none`;
  images[index].style.display = ``;
  counter.textContent = index + 1;

  for (let element of document.querySelectorAll(`[class="rate"]`)) element.style.backgroundColor = ``;
  for (let element of images[index].querySelectorAll(`[type="radio"]`)) if (element.checked) document.querySelector(`[class="rate"][value="${ element.value }"]`).style.backgroundColor = `lightgreen`;
}

function PREV () {
  if (index === 0) return;
  index --;
  SHOW();
}

function NEXT () {
  if (index === 9) return;
  index ++;
  SHOW();
}

document.getElementsByClassName(`container`)[0].insertAdjacentHTML(
  `afterend`,
  `<div class="text-center">` +
  `<button id="prev" style="margin: 3px;" type="button">Previous</button>` +
  `<button class="rate" value="1" style="margin: 3px;" type="button">1</button>` +
  `<button class="rate" value="2" style="margin: 3px;" type="button">2</button>` +
  `<button class="rate" value="3" style="margin: 3px;" type="button">3</button>` +
  `<button class="rate" value="4" style="margin: 3px;" type="button">4</button>` +
  `<button class="rate" value="5" style="margin: 3px;" type="button">5</button>` +
  `<button class="rate" value="6" style="margin: 3px;" type="button">6</button>` +
  `<button class="rate" value="7" style="margin: 3px;" type="button">7</button>` +
  `<button class="rate" value="8" style="margin: 3px;" type="button">8</button>` +
  `<button class="rate" value="9" style="margin: 3px;" type="button">9</button>` +
  `<button class="rate" value="10" style="margin: 3px;" type="button">10</button>` +
  `<button id="next" type="button">Next</button>` +
  `</div>` +
  `<div class="text-center"><span id="counter"></span> / 10</div>`
);

let index = 0;
const images = document.getElementsByClassName(`form-group`);
const counter = document.getElementById(`counter`);

for (let i = 0; i < images.length; i ++) {
  images[i].style.display = `none`;
  images[i].parentElement.className = `text-center`;
  images[i].parentElement.parentElement.className = `text-center`;
}

document.addEventListener(`click`, function (event) {
  const element = event.target;

  if (element.matches(`#prev`)) PREV();

  if (element.matches(`#next`)) NEXT();

  if (element.matches(`.rate`)) {
    document.getElementById(`rating${ index + 1 }-${ element.value }`).click();
    NEXT();
  }
});

window.addEventListener(`keydown`, function (event) {
  const key = event.key;

  if (key.match(/0/)) document.querySelector(`[class="rate"][value="1${ key }"]`).click();
  if (key.match(/[1-9]/)) document.querySelector(`[class="rate"][value="${ key }"]`).click();
  if (key.match(/Enter/)) document.querySelector(`[type="submit"]`).click();
});

SHOW();

:glomp:

ahem.
sorry.
But there were no shaking hands emojis.
 
Last edited:

BlueSkyHippie

Graveyard Queen
Contributor
Joined
Jan 12, 2016
Messages
752
Reaction score
1,243
Points
418
Gender
Female
What are these hotel hits of which you speak?
 

T. Leela

Oh Lord...
Contributor
Joined
May 12, 2016
Messages
11,050
Reaction score
14,046
Points
1,388
Location
Colorado
Gender
Female
Title: Hotel Image Rating | PANDA
Requester: Cliff DesPeaux [A1XNO05QPOU735] (Contact)
TO: [Pay: N/A] [Fair: N/A] [Comm: N/A] [Fast: N/A] [Reviews: 1] [ToS: 0]
Description:
rate the hotel images
Time: 10 minutes
HITs Available: 3285
Reward: $0.05
Qualifications: Traveler Type quiz is greater than 0; Total approved HITs is not less than 100; HIT approval rate (%) is not less than 98;
HIT exported from Mturk Suite v1.11.7
 

Req.body

Crow
Contributor
Joined
Feb 2, 2016
Messages
1,404
Reaction score
2,574
Points
788
Age
32
Hello night owls, here is a present.

Code:
// ==UserScript==
// @name         Cliff DesPeaux
// @namespace    https://gist.github.com/Kadauchi
// @version      1.0.0
// @description  Hotel Image Rating
// @author       Kadauchi
// @icon         http://i.imgur.com/oGRQwPN.png
// @include      /^https://(www\.mturkcontent|s3\.amazonaws)\.com/
// @hitsave      https://www.mturkcontent.com/dynamic/hit?hitId=38G0E1M85M4QD3BEYP7BMC8YT7YVU5
// @hitname      Hotel Image Rating
// ==/UserScript==

if (document.getElementsByTagName(`strong`)[0].textContent !== `How much is the image making you want to stay at the hotel?`) return;

function SHOW () {
  for (let i = 0; i < images.length; i ++) images[i].style.display = `none`;
  images[index].style.display = ``;
  counter.textContent = index + 1;

  for (let element of document.querySelectorAll(`[class="rate"]`)) element.style.backgroundColor = ``;
  for (let element of images[index].querySelectorAll(`[type="radio"]`)) if (element.checked) document.querySelector(`[class="rate"][value="${ element.value }"]`).style.backgroundColor = `lightgreen`;
}

function PREV () {
  if (index === 0) return;
  index --;
  SHOW();
}

function NEXT () {
  if (index === 9) return;
  index ++;
  SHOW();
}

document.getElementsByClassName(`container`)[0].insertAdjacentHTML(
  `afterend`,
  `<div class="text-center">` +
  `<button id="prev" style="margin: 3px;" type="button">Previous</button>` +
  `<button class="rate" value="1" style="margin: 3px;" type="button">1</button>` +
  `<button class="rate" value="2" style="margin: 3px;" type="button">2</button>` +
  `<button class="rate" value="3" style="margin: 3px;" type="button">3</button>` +
  `<button class="rate" value="4" style="margin: 3px;" type="button">4</button>` +
  `<button class="rate" value="5" style="margin: 3px;" type="button">5</button>` +
  `<button class="rate" value="6" style="margin: 3px;" type="button">6</button>` +
  `<button class="rate" value="7" style="margin: 3px;" type="button">7</button>` +
  `<button class="rate" value="8" style="margin: 3px;" type="button">8</button>` +
  `<button class="rate" value="9" style="margin: 3px;" type="button">9</button>` +
  `<button class="rate" value="10" style="margin: 3px;" type="button">10</button>` +
  `<button id="next" type="button">Next</button>` +
  `</div>` +
  `<div class="text-center"><span id="counter"></span> / 10</div>`
);

let index = 0;
const images = document.getElementsByClassName(`form-group`);
const counter = document.getElementById(`counter`);

for (let i = 0; i < images.length; i ++) {
  images[i].style.display = `none`;
  images[i].parentElement.className = `text-center`;
  images[i].parentElement.parentElement.className = `text-center`;
}

document.addEventListener(`click`, function (event) {
  const element = event.target;

  if (element.matches(`#prev`)) PREV();

  if (element.matches(`#next`)) NEXT();

  if (element.matches(`.rate`)) {
    document.getElementById(`rating${ index + 1 }-${ element.value }`).click();
    NEXT();
  }
});

window.addEventListener(`keydown`, function (event) {
  const key = event.key;

  if (key.match(/0/)) document.querySelector(`[class="rate"][value="1${ key }"]`).click();
  if (key.match(/[1-9]/)) document.querySelector(`[class="rate"][value="${ key }"]`).click();
  if (key.match(/Enter/)) document.querySelector(`[type="submit"]`).click();
});

SHOW();
is this php?

and morning gals
 

sryan66611

Well-Known Member
Contributor
Joined
Feb 13, 2016
Messages
3,412
Reaction score
5,893
Points
838
Age
37
Gender
Male
anyone who did those cliff's have any approve or they going to do AA?
 
  • Like
Reactions: Concise
Status
Not open for further replies.