YChart

Opens the link on a Ychart hit

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

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