Greasy Fork is available in English.

Panda Crazy Helper Emulation

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

Fra 2018-01-15 21:14:47 UTC. Se den seneste versjonen.

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://greasyfork.org/scripts/36173-panda-crazy-helper-emulation/code/Panda%20Crazy%20Helper%20Emulation.js?version=243586

Forfatter
Salem Beats
Vurderinger
0 0 0
Versjon
0.0.1.20180115211447
Lagd
Oppdatert
Lisens
I/T
Gjelder
Alle sider

Forfatterens beskrivelse

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.