zoukankan      html  css  js  c++  java
  • 禅道 全自动指派bug

    // ==UserScript==
    // @name 禅道自动解决
    // @namespace http://tampermonkey.net/
    // @version 0.3
    // @description try to take over the world!
    // @author Alex
    // @match http*://*/*
    // @grant none
    // @run-at document-start
    
    // ==/UserScript==
    (function(){
    var Length = $("#historyItem li").length -1;
    var LastOne = $($("#historyItem li")[Length]);
    var status = $(LastOne).find(".item")["0"].firstChild.parentNode.childNodes[2].data;
    //如果有解决按钮,直接点解决
    if( $(".btn.iframe.showinonlybody")[1].innerText == " 解决"){
    $(".btn.iframe.showinonlybody")[1].click();
    $("#modalIframe").load(function(){
    $(window.frames["modalIframe"].document).find("#resolution").val("fixed");
    $(window.frames["modalIframe"].document).find("#resolvedBuildBox span")[0].innerText = "Trunk";
    $(window.frames["modalIframe"].document).find("#resolvedBuild").val("trunk");
    $(window.frames["modalIframe"].document).find("#submit").click();
    });
    }
    //如果状态为解决,直接指派
    else if(status == " 解决,方案为 "){
    $(".btn.iframe")[3].click();
    $("#modalIframe").load(function(){
    $(window.frames["modalIframe"].document).find("#submit").click();
    });
    }
    
    }());

    配合Chrome 浏览器插件 TamperMonkey使用

  • 相关阅读:
    进度3
    进度2
    进度1
    库存物资管理系统
    课程管理系统
    文件与流作业
    bzoj4027: [HEOI2015]兔子与樱花
    bzoj2067: [Poi2004]SZN
    bzoj2071:[POI2004]山洞迷宫
    bzoj1063: [Noi2008]道路设计
  • 原文地址:https://www.cnblogs.com/tangpeng97/p/8036779.html
Copyright © 2011-2022 走看看