MTurk Auto-Accept changer for mturkgrind.com

Add a "previewandaccept" link after the preview link for HITs posted on mturk-related forums: MTurkGrind, MTurkForum, and TurkerNation.

  1. // ==UserScript==
  2. // @name MTurk Auto-Accept changer for mturkgrind.com
  3. // @author Kerek
  4. // @namespace Kerek
  5. // @version 0.2.3x
  6. // @description Add a "previewandaccept" link after the preview link for HITs posted on mturk-related forums: MTurkGrind, MTurkForum, and TurkerNation.
  7. // @require http://code.jquery.com/jquery-latest.min.js
  8. // @include http://www.mturkgrind.com/*
  9. // @include http://mturkgrind.com/*
  10. // @include http://www.mturkforum.com/*
  11. // @include http://mturkforum.com/*
  12. // @include http://www.turkernation.com/*
  13. // @include http://turkernation.com/*
  14. // @copyright 2014
  15. // @grant GM_log
  16. // ==/UserScript==
  17.  
  18.  
  19. $('a[href*="/mturk/preview?"]').each(function(){
  20. var preview_link=$(this).attr('href').replace("preview?", "previewandaccept?");
  21. var link_color = $(this).find('font').attr('color');
  22. var link_html = "<a href='" + preview_link + "' target='_blank'><font color=" + link_color + ">ACCEPT</font></a>";
  23. $(this).after (" &nbsp;|&nbsp; " + link_html);
  24. });