SeaTable Custom Style, Type -50 to make a gap tab
当前为
// ==UserScript==
// @name SeaTable Custom Style
// @name:zh-CN SeaTable自定义样式
// @description SeaTable Custom Style, Type -50 to make a gap tab
// @description:zh-cn SeaTable自定义样式,新建个-50的表来创建一个空白分割线
// @namespace http://tampermonkey.net/
// @version 0.1
// @author oraant
// @grant none
// @license MIT
// @require https://greasyfork.org/scripts/6250-waitforkeyelements/code/waitForKeyElements.js?version=23756
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @match *://*.seatable.cn/*
// ==/UserScript==
waitForKeyElements (".tab-link", main);
function main(){ // 记得大的数放在前面,防止小数在前时,-5删掉无法识别-50的bug
$('.tab-link:contains("-200")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'200px'})
$('.tab-title:contains("-200")').text('')
$('.tab-link:contains("-50")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'50px'})
$('.tab-title:contains("-50")').text('')
$('.tab-link:contains("-30")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'30px'})
$('.tab-title:contains("-30")').text('')
$('.tab-link:contains("-20")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'20px'})
$('.tab-title:contains("-20")').text('')
$('.tab-link:contains("-10")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'10px'})
$('.tab-title:contains("-10")').text('')
$('.tab-link:contains("-5")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'20px'})
$('.tab-title:contains("-5")').text('')
$('.tab-link:contains("--")').css({'opacity': 0, 'padding':0, 'border-radius':0, 'width':'20px'})
$('.tab-title:contains("--")').text('')
$('.react-grid-HeaderCell:contains("---")').css({'border-bottom':0, 'background-color':'white'})
$('.react-grid-HeaderCell:contains("---") > *').css({'opacity': 0})
$('.react-grid-Cell:contains("---")').css({'border-bottom':0})
$('.react-grid-Cell:contains("---") > *').css({'opacity': '0'})
}