NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Show debug option for running // @namespace http://runzhi.gnc.com/ // @version 0.4 // @description Show debug option for running // @author runzhi // @match http://running.webdev.com/* // @grant none // ==/UserScript== (function(){ var debug_button = $("<a>").text("打开列表调试").css("font-size", "20px").css("margin","20px").css("display","block").click(function(){ $table = $(".table.table-hover.table-list"); $table.find("tr.ng-scope").each(function(){ $id = $($(this).find("td")[0]).text(); $button_container = $(this).find(".oper-btn"); if($button_container.find(".debug_button").size() === 0){ $button_container.append('<a class="btn-export debug_button" alt="调度结果" title="调度结果" target="_blank" href="job/result?taskId=' + $id + '">调度结果</a>'); $button_container.append('<a class="btn-export debug_button" alt="执行结果" title="执行结果" target="_blank" href="job/joblog?taskId=' + $id + '">执行结果</a>'); $button_container.append('<a class="btn-export debug_button" alt="清空列表" title="清空列表" target="_blank" href="news/deleteNewsInList?taskId=' + $id + '">清空列表</a>'); } }); }); $("body").prepend(debug_button); })();