mmmturkeybacon Add Contact Link To Turkopticon

Adds a link to the requester's mturk contact form

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        mmmturkeybacon Add Contact Link To Turkopticon
// @author      mmmturkeybacon
// @description Adds a link to the requester's mturk contact form 
//              to Turkopticon reviews.
// @namespace   http://userscripts.org/users/523367
// @match       http://turkopticon.ucsd.edu/*
// @match       https://turkopticon.ucsd.edu/*
// @require     http://code.jquery.com/jquery-latest.min.js
// @version     1.02
// @grant       GM_log
// ==/UserScript==

var subject = 'Regarding+Amazon+Mechanical+Turk+HIT';

$('a[href^="/reports?id="]').each(function()
{
    var requesterId = $(this).attr('href').replace("/reports?id=","");
    $(this).parent().parent().append('<br><a href="https://www.mturk.com/mturk/contact?subject='+subject+'&requesterId='+requesterId+'">Contact Requester</a>');
    //var requesterName = $(this).text().trim().replace(/ /g,'+');
    //$(this).parent().parent().append('<br><a href="https://www.mturk.com/mturk/contact?subject='+subject+'&requesterId='+requesterId+'&requesterName='+requesterName+'">Contact Requester</a>');
});