• 禅道 全自动指派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使用

  • 相关阅读:
    python模块整理9ini配置ConfigParse模块
    python模块整理12pdb调试模块
    django临时
    django实战1使用视图和模板显示多行
    python模块整理10xml.dom.minidom模块
    django_book学习笔记1django介绍
    构建之法阅读笔记 01
    人月神话阅读笔记 06
    人月神话阅读笔记 05
    第四周学习进度
  • 原文地址:https://www.cnblogs.com/tangpeng97/p/8036779.html
Copyright © 2020-2023  润新知