您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds AutoAccept Checkbox to a HIT Preview
- // ==UserScript==
- // @name mmmturkeybacon Add AutoAccept Checkbox to HIT Preview
- // @version 1.02
- // @description Adds AutoAccept Checkbox to a HIT Preview
- // @author mmmturkeybacon
- // @namespace http://userscripts.org/users/523367
- // @match https://*.mturk.com/mturk/preview?*
- // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
- // @grant GM_log
- // ==/UserScript==
- $(document).ready(function()
- {
- var is_preview = $('input[type="hidden"][name="isAccepted"][value="false"]').length > 0;
- if (is_preview)
- {
- $('td[nowrap=""][align="center"]:contains("Want to work on this HIT?")').each(function()
- {
- var $parent_table = $(this).parent().parent();
- $parent_table.append('<tr><td colspan="3"></td><td></td></tr>');
- $parent_table.append('<tr><td valign="bottom" nowrap="" height="26" align="center" colspan="3"><a style="display: block;" name="autoAcceptCheckboxWrapper"><input type="checkbox" onclick="javascript:toggleAllCheckboxes(this);" value="on" name="autoAcceptEnabled"></input>Automatically accept the next HIT</a></td></tr>');
- });
- }
- });