[MTurk Tools] Dashboard Style

Bring sanity back to the MTurk Dashboard.

目前为 2018-01-27 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name [MTurk Tools] Dashboard Style
  3. // @version 0.1.2
  4. // @description Bring sanity back to the MTurk Dashboard.
  5. // @author parseHex
  6. // @namespace https://greasyfork.org/users/8394
  7. // @match https://worker.mturk.com/dashboard*
  8. // @grant GM_addStyle
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14.  
  15. const prefix = '#MainContent > .row';
  16. const activityColumn = prefix + ' > .col-md-8';
  17. const otherColumn = prefix + ' > .col-md-4';
  18.  
  19. const css = `
  20. ${activityColumn} {
  21. right: 0;
  22. width: 33.33333%;
  23. }
  24.  
  25. ${otherColumn} {
  26. left: 0;
  27. width: 66.66666%;
  28. }
  29.  
  30. ${otherColumn} .row.m-b-xl {
  31. display: inline-block;
  32. width: 50%;
  33. float: left;
  34. position: relative;
  35. min-height: 1px;
  36. padding-left: 0.7142rem;
  37. padding-right: 0.7142rem;
  38. }
  39. `;
  40.  
  41. function init() {
  42. GM_addStyle(css);
  43. }
  44.  
  45. init();
  46.  
  47. }());