Greasy Fork

Shined up real nice.

Greasy Fork is available in English.

Panda Crazy Helper Emulation

Meant to be @included in other scripts to communicate with Panda Crazy.

Ce script ne doit pas être installé directement. C'est une librairie destinée à être incluse dans d'autres scripts avec la méta-directive // @require https://greasyfork.org/scripts/36173-panda-crazy-helper-emulation/code/Panda%20Crazy%20Helper%20Emulation.js?version=244288

Publicité
Auteur
Salem Beats
Notes
0 0 0
Version
0.0.1.20180118224010
Créé
Mis à jour
Licence
N/A
S'applique à
Tous les sites

Description de l'auteur

Usage

Main Object

PandaCrazy

Methods

addJob ( gid : String, once : Boolean, metadata : Object )

Adds a new job to Panda Crazy (If that job already exists, it will be duplicated as a new job.)

gid: The GID / HIT Set ID of the HIT to add.

once: Whether to collect the HIT only once, or indefinitely.

metadata (optional): {

   hitTitle / title: The title of the HIT,
   requesterName : The name of the requester,
   requesterID / requesterId / rid: The ID of the requester,
   hitValue / pay: The amount the HIT pays in USD, as a number in 0.01 format,
   duration: The duration of the HIT in seconds,
   hitsAvailable: The number of HITs available

}

startJob ( gid : String )

Starts a job in Panda Crazy if it is already present but not running. NOTE: This behavior is not currently implemented in the current public release of Panda Crazy.

gid: The GID / HIT Set ID of the HIT to start.

ping ( )

Sends a ping message to Panda Crazy, which Panda Crazy will respond to with a pong message if it is running in the same browser and profile.

online( )

Pings for Panda Crazy and returns a promise that will either resolve or reject within a set timeout (currently 5 seconds) depending on whether Panda Crazy is detected as online within the same browser and profile or not.