Status Searchable Requester

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

  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.2
  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. Array.prototype.forEach.call( document.querySelectorAll('[title="Contact this Requester"'), function(el) {
  15. var tag = document.createElement('a');
  16. tag.href = el.href;
  17. el.href = "https://www.mturk.com/mturk/searchbar?selectedSearchType=hitgroups&requesterId=" + tag.search.split(/=|&/)[1];
  18. el.target = "_blank";
  19. tag.innerHTML = "✉";
  20. el.parentElement.appendChild( tag );
  21. });