ShadeFix Shuttle API

Quality of work improvements in Shuttle

目前為 2019-02-06 提交的版本,檢視 最新版本

//
// Written by Glenn Wiking
// Script Version: 1.1.0a
// Date of issue: 23/01/19
// Date of resolution: 23/01/19
//
// ==UserScript==
// @name        ShadeFix Shuttle API
// @namespace   SFSH
// @description Quality of work improvements in Shuttle
// @include     *.shuttle.be/admin*

// @version     1.1.0a
// ==/UserScript==

function ShadeFixSH(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

ShadeFixSH (
	'.shuttle-Panel-inner .TreeScroller {height: 32vh !important;}'
  +
  '.shuttle-Panel-inner .TreeScroller--inner {height: 31.8vh !important;}'
  +
  '.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;}'
  +
  '.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;}'
  +
  '.shuttle-Panel-inner {padding: 20px !important;}'
  +
  '.shuttle-Panel--mainNav > .shuttle-Panel-inner {overflow-x: hidden;}'
  +
  '.ace_editor {font-size: 13.5px !important;}'
  /*+
  '.shuttle-Panel--sub {width: 500px !important;}'*/
);