这个插件可以帮助你一键通过所有的批改意见。
当前为
// ==UserScript==
// @name Udacity review all pass
// @namespace https://ypw.io
// @version 1.6
// @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"><i class="glyphicon glyphicon-ok"></i> 全部通过</button>');
if(window.location.href.search('audit') != -1){
r.insertAfter($('.row-gap-medium:eq(3)'));
}
else{
r.insertAfter($('footer div:eq(0) div: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($('footer div:eq(0) div:eq(0)'));
$('#pass_all').click(function() {
$.map($('input[value=passed]'), function(x){x.click();});
$.map($('button.btn-secondary'), function(x){x.click();});
});
});
})();