mTurk - Highlight Masters

Highlights HIT title and "View a HIT in this group" for the Masters qualification. Must be logged in and be a Master for the highlighting to work.

当前为 2015-06-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name mTurk - Highlight Masters
  3. // @namespace thisisnotavalidnamespace
  4. // @include https://www.mturk.com/mturk/sortsearchbar*
  5. // @include https://www.mturk.com/mturk/searchbar*
  6. // @include https://www.mturk.com/mturk/viewsearchbar*
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
  8. // @description Highlights HIT title and "View a HIT in this group" for the Masters qualification. Must be logged in and be a Master for the highlighting to work.
  9. // @version 0.0.1.20150602091453
  10. // ==/UserScript==
  11. this.$ = this.jQuery = jQuery.noConflict(true);
  12. $().ready(function() {
  13. $("td:Contains('Masters')").each(function(index) {
  14. if ($(this).next().next().is(":Contains('You meet this qualification requirement')")) {
  15. $(this).parent().parent().parent().parent().parent().parent().parent().parent().parent().parent().parent()
  16. // .find("[bgcolor*='CCDDE9']").css('background-color', '#FFE0E0');
  17. .find("[bgcolor*='CCDDE9']").find("a").css('color', '#8B0000');
  18. }
  19. });
  20. });