[.05 K Ehinger]Image naming

Auto-opens survey link in new window

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         [.05 K Ehinger]Image naming 
// @namespace    robert
// @namespace    https://greasyfork.org/en/users/13168-robert
// @include      https://search.partners.org/mturk/naming/mturk.html*
// @version      1
// @grant        none
// @run-at       document-end
// @description  Auto-opens survey link in new window
// @require      http://code.jquery.com/jquery-2.1.0.min.js
// ==/UserScript==

/*
To do:
- after open new window, focus textbox
- copy/paste validation code
- give user option to autosubmit
*/

if ( $("p:contains('[email protected]')").length ) 
{
  document.getElementById('checkconsent').click();
  var surveyUrl = 'https://search.partners.org/mturk/naming/index.php?assignmentid=' + gup('assignmentId') + 
      '&workerid=' + gup('workerId');
  window.open(surveyUrl, "MsgWindow", '_blank', 'toolbar=0,location=0,menubar=0');
}

/*
Auto-opens survey link in new window
*/