DCI New HIT Monitor for mturk (classic version)

Monitors for new HITs from requesters on your list

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        DCI New HIT Monitor for mturk (classic version)
// @namespace   wutevs
// @description Monitors for new HITs from requesters on your list
// @include     https://www.mturk.com/mturk/searchbar?selectedSearchType=hitgroups&qualifiedFor=on&sortType=LastUpdatedTime%3A1
// @version     9000
// @grant       none
// ==/UserScript==

var needles = new Array(
    
    
//==[This is your requester list. Add or remove whatever you like]==\\
//==[If you make a typo and break it, you'll know, because it won't reload]==\\
    
"ACME Data Collection",
"agent agent",
"AJ Ghergich",
"Andy K",
"BICC",
"Bluejay Labs",
"carnegie mellon social computing group",
"Christos Koritos",    
"Dan Shaffer",
"David Mease",
"Funicular Heavy Industries",
"Gaddy",    
"Heather Walters",
"JASON W GULLIFER",
"Jeff Foster",
"jesse egbert",
"Jonathan Frates",
"Leonid",
"nabirds",
"nlp",    
"OCMP",
"Parisa",
"Personagraph",
"pickfu",
"Procore", 
"Project Endor",
"Project Gandolph",
"Sergey Schmidt",
"SIRIUSProject",
"Smartsheet",
"Spreecast",
"Stiglitz",
"Tag Requester",
"Two Lakes",
"User Manual",
"vaplab",    
"Vesterman",
"UW Social", 
"Wharton",    
"World Vision",
"x8 data"
    
//==[Be careful not to put a comma after the last item on your list]==\\    
    
);

var haystack = document.body.innerHTML;

var my_pattern, my_matches, found = "";
for (var i=0; i<needles.length; i++){
  my_pattern = eval("/" + needles[i] + "/gi");
  my_matches = haystack.match(my_pattern);
  if (my_matches){
    found += "\n" + my_matches.length + " found for " + needles[i]; 
  }
}

//===[Settings]===\\
mCoinSound = new Audio("http://static1.grsites.com/archive/sounds/musical/musical002.wav"); //==[This is the path to the mp3 used for the alert]==\\
//===[Settings]===\\                                                          //==[Just change the url to use whatever sound you want]==\\

if (found != "") 
    
{
    
mCoinSound.play(); 

setTimeout(function(){alert("Alert" + found)}, 2000);//==[This number is the delay between your sound alert and popup alert. 1000 is 1 second. You may need to increase the delay if the popup is frequently cutting off your sound before it can play]==\\
    
//===[Settings]===\\
var StRefTime = '300';  //==[This is the number of seconds HIT monitor sleeps after the alert is clicked]
//===[/Settings]===\\
    
    if (StRefTime > 0) setTimeout("location.reload(true);",StRefTime*1000);
}
else
//===[Settings]===\\
var StRefTime = '5';  //==[This is the number of seconds between page reloads]
//===[/Settings]===\\
    
if (StRefTime > 0) setTimeout("location.reload(true);",StRefTime*1000);