Overwatch for worker.mturk

A userscript for watching requseters on the mturk platform.

当前为 2016-11-01 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Ethraiel
评分
0 0 0
版本
1.00.02
创建于
2016-10-31
更新于
2016-11-01
大小
98.3 KB
许可证
暂无
适用于

Edit: I should note i have nothing to do with HM or it's writing and just use it as a reference that i think others will relate to

A userscript for watching requseters on the mturk platform. Overwatch is meant to completely replace Hit Monitor. It functions similarly but provides a few extra features.
The best way to familiarize yourself with the script would be to watch the tutorial here https://www.youtube.com/watch?v=l3-Pkvq-_Yk
(Special thanks to Melting Glacier, PlagueWitch, Wimplo, and Rdaneel...Please contact me [Ethraiel] on MTG as well as any reports you may make here, thank you)


-----------------------
Quick Pointers
-----------------------

To import from HM
1.Get the HM export copied to your clipboard
2.Paste the export into the text bar that's in the upper right portion of the screen.
3.Click import at the bottom of the screen

To load the script
1.Login to the worker site
2.Go to https://worker.mturk.com/overwatch
(the script will only run on that site)

To start the script
1.Click the "start-stop" button (it will change text to "running" and turn green)
2.To stop the script, click the same button (the text will change and turn yellow, when the interval stops the button turns red)


-----------------------------
Buttons Explained
-----------------------------

-Search All-
Will go through all the HITs you qualify for on Mturk and returns any on your watchlist. The button will turn red when finished.
*this can take a lot of time if there are a lot of HITs available to you.

-Start-Stop-
Starts the script and stops it, changes color too!
Green means the script is running.
Red means the script has stopped completely.
Yellow means neutral, either the script has just loaded or it's between being told to stop and actually stopping.
~this is also the save button for settings, see below

-Remove Watcher-
Clicking will turn the button red.
After the button has been clicked, clicking any watcher button will delete that watcher.
*you must click "remove watcher" again to turn off the feature.

-Add Watcher-
(search@name) means searchstring + "@" + whateverwewanttocallit
name can be anything you want and doesn't affect the script.
RID, GID, partial HIT titles, and partial requester names are all valid searches.

EXa. to watch for Ben Peterson by RID enter "AFEG4RKNBSL4T@Benny Boy" into the text field and click "add watcher"
EXb. to watch for Ben Peterson by GID enter "xxxxGIDxxxxx@Ben Petersdude"
EXc. to watch for Ben Peterson by partial name search enter "en peters@ben peterson" (capitalization is not important)
EXd. watching by partial title is just the same "(for MALES age 25 & UNDER)@ben's HITs"

-Timer-
Sets the interval for the script. For example; a timer set to 5 will scrape mturk every 5 seconds.

-Import-
Clicking this will import whatever export is in the text field.Used after pasting either an HM export, or an Overwatch Export into the text field.

-Export-
Clicking this will display an editable export. Copy and save it elsewhere.

-Print Log-
this will print simple details about every HIT the script has ever seen.
This can get laggy after you've used the script a few months *will be addressed in future sometime*

-Sleep-
Displays in minutes the amount of time for a GID to be "ignored" once we've seen it.
~~see below for more info on sleep

-Persistent Display-
Checking this box will keep the entire page on refresh. This should only be used sparingly and can really cause lag after a while. But it's handy if you need to refresh your browser quickly or have a habit of closing windows accidentally.

-TTS-
this will remove the alert tone and replace it with text-to-speech saying the name of the requester as given by AMT...
Fun stuff that can be edited in the script include voice, pitch, rate, and whether it speaks the name given by AMT or the name of your watcher.
*note TTS will work differently depending on which browser you use (for example the default voice for FF is female and for Chrome it's male)

-Auto Launch-
this will launch a requester page when the script sees a watcher for the first time. For example, Zoltar .12 get's seen in the morning, Auto Launch is checked so a new page is opened and we're alerted. Now we see the .06 zoltars... no page will be opened but we'll still be alerted.


-----------
~Notes
-----------

~How the script saves settings
1. settings are saved to localStorage when the interval(a scrape) occurs.
2. settings are saved when the "start-stop" button is clicked.

~~Differences in HM sleep and overwatch sleep
1. HM sleep is "Watcher based" meaning your watchers are what get put to sleep.
2. OW sleep is GID based meaning each GID gets it's own place in our sleep array
3. the biggest advantage is being able to watch for more than one hit from a requester without multiple watchers
EXa. HM is watching for Zoltar and finds the .12 GID. It launches the page and sets the Zoltar watcher to sleep. If a .06 Zoltar GID goes up while the watcher is still sleeping it gets ignored.
EXb. OW is watching for Zoltar and finds the .12 GID. It launches the page and sets the .12 GID to sleep. If a .06 Zoltar GID goes up while the .12 is still sleeping it gets displayed. The .06 GID gets put to sleep.

---------------------
Known Issues
---------------------

login can sometimes not get registered, meaning you have to open a worker.mturk page first then refresh the script when you get logged out

Hitting add watcher when the textfield isn't in the right format will create a "bad" watcher, which is technically your fault but it should send a warning *im working on this slowly right now*

in general the text field thing in the upper right can be a bit laggy.

GID watchers get removed when HIT is found. *FIXED*

Finally the script has been tested in both Chrome/Tampermonkey and FF/Greasemonkey but was written and is edited in Chrome. No other browser is planned to be supported.

----------------
Changes
----------------

v 1.00.01
-Fixed an issue with GID based watchers deleting themselves

v 1.00.02
-"Last Search" indicator added to the bottom of the screen; to assure you the script is running.
-Background added to export panel.
-Requester name from Hit feed will now link to mturk requester page.
(special thanks to slothbear for writing the code!)