HighlightMasters

Highlights Masters HITs in the color red on search pages. Specifically, the HIT title.

  1. // ==UserScript==
  2. // @name HighlightMasters
  3. // @namespace thisisnotavalidnamespace
  4. // @version 2.0.20180115
  5. // @description Highlights Masters HITs in the color red on search pages. Specifically, the HIT title.
  6. // @match https://worker.mturk.com/?filters*
  7. // @match https://worker.mturk.com/projects?*
  8. // @match https://worker.mturk.com/projects
  9. // @match https://worker.mturk.com/projects/
  10. // @match https://worker.mturk.com/projects/?filters*
  11. // @match https://worker.mturk.com/projects/?page_size=*
  12. // @match https://worker.mturk.com/requesters/*
  13. // @match https://worker.mturk.com/?*
  14. // @match https://worker.mturk.com/
  15. // @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
  16. // @grant none
  17. // ==/UserScript==
  18. this.$ = this.jQuery = jQuery.noConflict(true);
  19. $().ready(function() {
  20. //alert($("li.hit-set-table-row").html());
  21. $("span.button-text:Contains('Show Details')").click();
  22.  
  23. $("li.hit-set-table-row:Contains('Masters has been granted')").each(function(index) {
  24. $(this).find("span.project-name-column").css('color', '#8B0000');
  25. });
  26. $("span.button-text:Contains('Hide Details')").click();
  27. $("td:Contains('Masters')").each(function(index) {
  28. if ($(this).next().next().is(":Contains('You meet this qualification requirement')")) {
  29. $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent()
  30. // .find("[bgcolor*='CCDDE9']").css('background-color', '#FFE0E0');
  31. .find("[bgcolor*='CCDDE9']").find("a").css('color', '#8B0000');
  32. }
  33. });
  34. });