Status Searchable Requester

Replace status page contact links with a HIT search for that requester, and adds a separate contact link.

当前为 2016-03-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Status Searchable Requester
  3. // @description Replace status page contact links with a HIT search for that requester, and adds a separate contact link.
  4. // @author TheFrostlixen
  5. // @version 0.1
  6. // @namespace https://greasyfork.org/en/users/34060
  7. // @match https://www.mturk.com/mturk/statusdetail?*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. // == CHANGELOG ==
  12. // v0.1 Does what it should, quick and dirty implementation
  13.  
  14. 'use strict';
  15. Array.prototype.forEach.call( document.querySelectorAll('[title="Contact this Requester"'), function(el) {
  16. var tag = document.createElement('a');
  17. tag.href = el.href;
  18. el.href = "https://www.mturk.com/mturk/searchbar?selectedSearchType=hitgroups&requesterId=" + tag.search.split(/=|&/)[1];
  19. el.target = "_blank";
  20. tag.innerHTML = "✉"
  21. el.parentElement.appendChild( tag );
  22. });