Udacity review all pass

这个插件可以帮助你一键通过所有的批改意见。

目前為 2018-03-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Udacity review all pass
// @namespace    https://ypw.io
// @version      1.7
// @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>&nbsp全部通过</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();});
    });
    if(window.location.href.search('reviews') != -1){
        var waitUntil = setInterval(function() {
            if ($('li[ng-if=hasFeedback] a').text()) {
                $('li[ng-if=hasFeedback] a').click();
                clearInterval(waitUntil);
            }
        }, 100);
    }
    $(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();});
        });
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址