// ==UserScript== // @name 禅道看板 // @description 禅道看板自动展开 // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author gccd // @match http://cd.midea.com/pms/index.php?m=project&f=kanban* // @match https://cd.midea.com/pms/index.php?m=project&f=kanban* // @grant none // @icon http://www.meicloud.com/favicon.ico // @copyright 2018+, @MeiCloud // @downloadURL none // ==/UserScript== (function() { 'use strict'; $(".board-footer").show(); function filter(keyword){ $("tr").each(function(i){ if(keyword == null || keyword.length == 0){ $(this).show(); }else{ var smalls = $(this).find("small"); var match = false; for(var j =0;j'); newElement.css({ position: 'fixed', top: 270, right: 50, width: 100 }) $("#kanban").append(newElement); newElement.on('input onpropertychange',function(e){ var keyword = $(this).val(); var reg = /^[\u4E00-\u9FA5]+$/ // var reg = /.*[\u4e00-\u9fa5]+.*$/ if(reg.test(keyword)) { filter(keyword); } }); // Your code here... })();