05/09 - Twizzlers Thursday!

Twizzlers?


  • Total voters
    91
Status
Not open for further replies.

CrazyCatLady

..
Contributor
Crowd Pleaser
Joined
Jan 15, 2018
Messages
7,403
Reaction score
20,832
Points
1,363
Location
Arkansas
Gender
Female
Afternoon. Sorry about your bad day but mine was really bad. Too depressed single daughters because the Rockets didn't win so they did not get to see Peachy @Peachy with his shirt off. Had to refreeze the whip topping. :wink:

Seriously, I do hope yours gets better.
LOL.
 

aveline

Well-Known Member
Administrator
Champion
Joined
Jan 10, 2016
Messages
36,516
Reaction score
104,423
Points
2,088
Location
Las Vegas
Gender
Female
I liked Burke better when the duplicate stuff was in the same window and I didn't have to click.
I don't know if this still works, but it did as of a week or two ago. 1, 2, 3 for yes, no, N/A and ` to submit.

Code:
// ==UserScript==
// @name         Peter Burke - Duplicate Article Detection
// @namespace    https://www.mturkcrowd.com/members/aveline.7/
// @version      1.0
// @description  Probably does nothing.
// @author       aveline
// @icon         https://i.imgur.com/jsju8Wy.png
// @include      *
// @require      http://code.jquery.com/jquery-3.2.1.min.js
// @grant        none
// ==/UserScript==

let popup;

// Submit button
function submit() {
    if (popup) popup.close();
    document.querySelector(`[type="submit"]`).click();
}

function windowIsOnEndor() {
    return window.location.href.includes('endor');
}

if (windowIsOnEndor()) {

    var yes = document.getElementsByTagName('input')[1];
    var no = document.getElementsByTagName('input')[2];
    var na = document.getElementsByTagName('input')[3];

    let linko1 = window.open(document.getElementsByTagName("a")[0].href,"linko1","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2);
    let linko2 = window.open(document.getElementsByTagName("a")[1].href,"linko2","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2 + ",top=" + screen.availHeight/2);

    window.addEventListener("beforeunload", function() {
        linko1.close();
        linko2.close();
    });

    window.addEventListener("message", listener, false);


}

function listener(l){
    var info = l.data;
    if (l.data == 'yes') {
        yes.click();
    } else if (l.data == 'no') {
        no.click();
    } else if (l.data == 'na') {
        na.click();
    } else if (l.data == 'submit') {
        submit();
    } else {
        console.log(info);
    }
}

function kas(i) {
// Yes
    if (i.keyCode == 49){// 1
        i.preventDefault();
        window.opener.postMessage('yes', '*');
    }
// No
    if (i.keyCode == 50){// 2
        i.preventDefault();
        window.opener.postMessage('no', '*');
    }

// N/A
    if (i.keyCode == 51) {//3
        i.preventDefault();
        window.opener.postMessage('na', '*');
    }

// Submit
    if (i.keyCode == 192) {//`
        i.preventDefault();
        window.opener.postMessage('submit', '*');
    }
}

if (!windowIsOnEndor()) {
    console.log('errrr');
    document.addEventListener('keydown', kas, true);
}
 

Peachy

777
Banned
Pollster
Crowd Pleaser
Champion
Joined
Jan 25, 2016
Messages
36,663
Reaction score
88,761
Points
2,089
Age
34
Too depressed single daughters because the Rockets didn't win so they did not get to see Peachy @Peachy with his shirt off. Had to refreeze the whip topping. :wink:

Seriously, I do hope yours gets better.
i'm sorry i couldn't make your daughters happy. the Rockets let everyone down last night

 

QueenOfScreams

Well-Known Member
Contributor
Joined
Apr 7, 2017
Messages
1,055
Reaction score
2,338
Points
538
Age
26
Location
arizona
Gender
Female
I don't know if this still works, but it did as of a week or two ago. 1, 2, 3 for yes, no, N/A and ` to submit.

Code:
// ==UserScript==
// @name         Peter Burke - Duplicate Article Detection
// @namespace    https://www.mturkcrowd.com/members/aveline.7/
// @version      1.0
// @description  Probably does nothing.
// @author       aveline
// @icon         https://i.imgur.com/jsju8Wy.png
// @include      *
// @require      http://code.jquery.com/jquery-3.2.1.min.js
// @grant        none
// ==/UserScript==

let popup;

// Submit button
function submit() {
    if (popup) popup.close();
    document.querySelector(`[type="submit"]`).click();
}

function windowIsOnEndor() {
    return window.location.href.includes('endor');
}

if (windowIsOnEndor()) {

    var yes = document.getElementsByTagName('input')[1];
    var no = document.getElementsByTagName('input')[2];
    var na = document.getElementsByTagName('input')[3];

    let linko1 = window.open(document.getElementsByTagName("a")[0].href,"linko1","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2);
    let linko2 = window.open(document.getElementsByTagName("a")[1].href,"linko2","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2 + ",top=" + screen.availHeight/2);

    window.addEventListener("beforeunload", function() {
        linko1.close();
        linko2.close();
    });

    window.addEventListener("message", listener, false);


}

function listener(l){
    var info = l.data;
    if (l.data == 'yes') {
        yes.click();
    } else if (l.data == 'no') {
        no.click();
    } else if (l.data == 'na') {
        na.click();
    } else if (l.data == 'submit') {
        submit();
    } else {
        console.log(info);
    }
}

function kas(i) {
// Yes
    if (i.keyCode == 49){// 1
        i.preventDefault();
        window.opener.postMessage('yes', '*');
    }
// No
    if (i.keyCode == 50){// 2
        i.preventDefault();
        window.opener.postMessage('no', '*');
    }

// N/A
    if (i.keyCode == 51) {//3
        i.preventDefault();
        window.opener.postMessage('na', '*');
    }

// Submit
    if (i.keyCode == 192) {//`
        i.preventDefault();
        window.opener.postMessage('submit', '*');
    }
}

if (!windowIsOnEndor()) {
    console.log('errrr');
    document.addEventListener('keydown', kas, true);
}
I totally forgot how to add this. What do. Link me. :D
 
  • Like
Reactions: LucyO and aveline

CrazyCatLady

..
Contributor
Crowd Pleaser
Joined
Jan 15, 2018
Messages
7,403
Reaction score
20,832
Points
1,363
Location
Arkansas
Gender
Female
I don't know if this still works, but it did as of a week or two ago. 1, 2, 3 for yes, no, N/A and ` to submit.

Code:
// ==UserScript==
// @name         Peter Burke - Duplicate Article Detection
// @namespace    https://www.mturkcrowd.com/members/aveline.7/
// @version      1.0
// @description  Probably does nothing.
// @author       aveline
// @icon         https://i.imgur.com/jsju8Wy.png
// @include      *
// @require      http://code.jquery.com/jquery-3.2.1.min.js
// @grant        none
// ==/UserScript==

let popup;

// Submit button
function submit() {
    if (popup) popup.close();
    document.querySelector(`[type="submit"]`).click();
}

function windowIsOnEndor() {
    return window.location.href.includes('endor');
}

if (windowIsOnEndor()) {

    var yes = document.getElementsByTagName('input')[1];
    var no = document.getElementsByTagName('input')[2];
    var na = document.getElementsByTagName('input')[3];

    let linko1 = window.open(document.getElementsByTagName("a")[0].href,"linko1","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2);
    let linko2 = window.open(document.getElementsByTagName("a")[1].href,"linko2","width=" + screen.availWidth/2 + ",height=" + (screen.availHeight/2 - 30) + ",left=" + screen.availWidth/2 + ",top=" + screen.availHeight/2);

    window.addEventListener("beforeunload", function() {
        linko1.close();
        linko2.close();
    });

    window.addEventListener("message", listener, false);


}

function listener(l){
    var info = l.data;
    if (l.data == 'yes') {
        yes.click();
    } else if (l.data == 'no') {
        no.click();
    } else if (l.data == 'na') {
        na.click();
    } else if (l.data == 'submit') {
        submit();
    } else {
        console.log(info);
    }
}

function kas(i) {
// Yes
    if (i.keyCode == 49){// 1
        i.preventDefault();
        window.opener.postMessage('yes', '*');
    }
// No
    if (i.keyCode == 50){// 2
        i.preventDefault();
        window.opener.postMessage('no', '*');
    }

// N/A
    if (i.keyCode == 51) {//3
        i.preventDefault();
        window.opener.postMessage('na', '*');
    }

// Submit
    if (i.keyCode == 192) {//`
        i.preventDefault();
        window.opener.postMessage('submit', '*');
    }
}

if (!windowIsOnEndor()) {
    console.log('errrr');
    document.addEventListener('keydown', kas, true);
}
Thank you so much!
 

Daniel

Well-Known Member
Contributor
Joined
May 25, 2017
Messages
3,014
Reaction score
5,271
Points
1,338
Gender
Male
Greetings from Amazon Mechanical Turk,

You've received a bonus from Luca for work related to 302OLP89DZBHH0A76E9P7FYSVZ5ACQ.
The value of your bonus is: $3.50 USD

The Requester included this note:
Thank you for your careful work on our HIT.

Thanks for being a Worker on Mechanical Turk!
 
Status
Not open for further replies.