mmmturkeybacon Select Amazon Payments/Disable Gift Card Withdrawal

Selects the Amazon Payments option, unchecks and disables the Amazon Gift Card withdrawal option.

  1. // ==UserScript==
  2. // @name mmmturkeybacon Select Amazon Payments/Disable Gift Card Withdrawal
  3. // @author mmmturkeybacon
  4. // @description Selects the Amazon Payments option, unchecks and disables the Amazon Gift Card withdrawal option.
  5. // @namespace http://userscripts.org/users/523367
  6. // @match https://www.mturk.com/mturk/transferearnings*
  7. // @match https://payments.amazon.com/withdraw*
  8. // @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
  9. // @version 1.05
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function ()
  14. {
  15. $('input[name="selectedExecutorTypeName"][value="AmazonPayments"][type="radio"]').attr('checked', 'true');
  16. $('input[name="selectedExecutorTypeName"][value="GCSharp"][type="radio"]').attr('disabled', 'true');
  17. $('input[name="selectedExecutorTypeName"][value="GCSharp"][type="radio"]').attr('checked', null);
  18.  
  19. // https://payments.amazon.com/withdraw
  20. // This form doesn't exist anymore.
  21. $('input[id="purchaseGC"][value="purchaseGC"][name="withdrawTo"][type="radio"]').attr('disabled', 'true');
  22. });