Udacity review 全部通过插件

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

当前为 2017-10-24 提交的版本,查看 最新版本

// ==UserScript==
// @name         Udacity review 全部通过插件
// @namespace    https://ypw.io
// @version      1.3
// @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)'));
        $('#pass_all').click(function() {
            $.map($('input[value=passed]'), function(x){x.click();});
            $.map($('button.btn-secondary'), function(x){x.click();});
        });
    });
})();

QingJ © 2025

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