ShadeFix Shuttle API

Quality of work improvements in Shuttle

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.1.1a
  4. // Date of issue: 23/01/19
  5. // Date of resolution: 23/01/19
  6. //
  7. // ==UserScript==
  8. // @name ShadeFix Shuttle API
  9. // @namespace SFSH
  10. // @description Quality of work improvements in Shuttle
  11. // @include *.shuttle.be/admin*
  12. // @require http://code.jquery.com/jquery-3.3.1.min.js
  13.  
  14. // @version 1.1.1a
  15. // ==/UserScript==
  16.  
  17. function ShadeFixSH(css) {
  18. var head, style;
  19. head = document.getElementsByTagName('head')[0];
  20. if (!head) { return; }
  21. style = document.createElement('style');
  22. style.type = 'text/css';
  23. style.innerHTML = css;
  24. head.appendChild(style);
  25. $(".shuttle-Tree-itemTarget .shuttle-Tree-title:contains('Detail')").css({"color":"#DDD"});
  26. console.log("Loaded");
  27. }
  28.  
  29. window.onload = function() {
  30. console.log("G");
  31. }
  32.  
  33.  
  34. ShadeFixSH (
  35. '.shuttle-Panel-inner .TreeScroller {height: 32vh !important;}'
  36. +
  37. '.shuttle-Panel-inner .TreeScroller--inner {height: 31.8vh !important;}'
  38. +
  39. '.shuttle-Panel-inner tr[data-type="image"] td img {height: 52px !important; width: 52px !important; transform: scale(1.1); transition: all 90ms ease-in-out 0s;}'
  40. +
  41. '.shuttle-Panel-inner tr[data-type="image"] td img:hover {transform: scale(1.25); height: 64px; width: 64px; transition: all 90ms ease-in-out 0s;}'
  42. +
  43. '.shuttle-Panel-inner {padding: 14px !important;}'
  44. +
  45. '.shuttle-Panel--mainNav > .shuttle-Panel-inner {overflow-x: hidden;}'
  46. +
  47. '.ace_editor {font-size: 13.5px !important;}'
  48. +
  49. '.shuttle-Tree {position: relative; left: -12px;}'
  50. +
  51. '.shuttle-Tree-item--root > .shuttle-Tree-itemTarget {padding-left: 7px !important;}'
  52. +
  53. '.shuttle-widget-master-style .shuttle-widget-title {left: 0 !important; top: 62px !important; width: 100% !important; text-align: center; font-size: 12px; text-overflow: clip; overflow: visible;}'
  54. /*+
  55. '.shuttle-Panel--sub {width: 500px !important;}'*/
  56. );