ZSMTurker's Piotr Script

Automatically selects the first two options and adds hotkey shortcuts.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @author      ZSMTurker
// @name        ZSMTurker's Piotr Script
// @namespace   https://greasyfork.org/users/2291
// @description Automatically selects the first two options and adds hotkey shortcuts.
// @require     http://code.jquery.com/jquery-latest.min.js
// @match       https://www.deyde.com/*
// @version     0.1
// ==/UserScript==

$( document ).ready( function() {
    $( 'button[name="cancel"]' ).eq( 0 ).css('float','right');
    $( 'button[name="check"]' ).eq( 0 ).css('float', 'left');
    $('#priceCluster-1').click();
    $('#offerCluster-1').click();
    document.addEventListener( "keydown", elPiotr, false );
} );

function elPiotr( i ) {
    if ( i.keyCode == 49 ) { //1
        $( 'button[name="check"]' ).eq( 0 ).css('background-color', '#ffffff');
        $( 'button[name="check"]' ).eq( 0 ).click();
    }
    if ( i.keyCode == 50 ) { //2
        $( 'button[name="cancel"]' ).eq( 0 ).css('background-color', '#ffffff');
        $( 'button[name="cancel"]' ).eq( 0 ).click();
    }
    if ( i.keyCode == 191 && i.shiftKey ) { //? Key - Shows Keys
        piotrCount++;
        alert(' 1 - Approve \n 2 - Reject');
    }
}