YChart

Opens the link on a Ychart hit

当前为 2014-09-10 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YChart
  3. // @namespace http://ericfraze.com
  4. // @version 0.2
  5. // @description Opens the link on a Ychart hit
  6. // @include https://www.mturk.com/mturk/accept*
  7. // @include https://www.mturk.com/mturk/submit*
  8. // @include https://www.mturk.com/mturk/continue*
  9. // @include https://www.mturk.com/mturk/previewandaccept*
  10. // @copyright 2014+, Eric Fraze
  11. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
  12. // ==/UserScript==
  13.  
  14. $(document).ready(function() {
  15. // Make sure the hit has been accepted
  16. if ($("input[name='/submit']").length>0) {
  17. //Open the link that you always have to click in a new tab
  18. $('a:contains("Click here to go to the Investor Relations Page for the company")').filter(function(index)
  19. {
  20. window.open($(this).prop('href'), 'YChart');
  21. return false;
  22. });
  23. //Check Yes radio button
  24. $("#Answer_3").prop("checked", true)
  25. }
  26. });