Huggle/JS/patrol speedy.js

From MediaWiki.org
< Huggle‎ | JS
Jump to navigation Jump to search
function ext_is_working()
{
    return true;
}

function patrol(edit, tags, success)
{
    if (!success)
        return;

    huggle.log("Marking page " + edit["Page"]["PageName"] + " as patrolled");
    huggle.editing.patrol_edit(edit);
}

function ext_init()
{
    huggle.register_hook("speedy_finished", patrol);
    return true;
}

function ext_get_info()
{
    var info = {};
    info["name"] = "Patrol on speedy";
    info["version"] = "1.0.0";
    info["description"] = "Mark edits that were tagged for deletion as patrolled";
    info["author"] = "Petr Bena";
    // info["min_huggle_version"] = "3.4.0";
    // info["required_context"] = "huggle_ui";
    // info["requires_unsafe"] = false;
    return info;
}