这个插件可以帮助你一键通过所有的批改意见。
当前为
// ==UserScript==
// @name Udacity review 全部通过插件
// @namespace https://ypw.io
// @version 1.2
// @description 这个插件可以帮助你一键通过所有的批改意见。
// @author YPW
// @include https://review.udacity.com/*
// @grant none
// ==/UserScript==
(function() {
var r = $('<button type="button" class="btn btn-default ng-binding" id="pass_all" style="margin-left: 12px">全部通过</button>');
r.insertAfter($('section:nth-child(5) div:eq(0) button:eq(0)'));
$('#pass_all').click(function() {
$.map($('input[value=passed]'), function(x){x.click();});
$.map($('button.btn-secondary'), function(x){x.click();});
});
$(window).bind('hashchange', function(e) {
r.insertAfter($('section:nth-child(5) div:eq(0) button:eq(0)'));
});
})();