CSRF Grabber

A library for getting the current csrf token for POSTs on Kickass Torrents.

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/19500/248917/CSRF%20Grabber.js

/*
 *  name         CSRF Grabber
 *  namespace    pxgamer
 *  version      0.2
 *  description  A library for getting the current csrf token for POSTs on Kickass Torrents.
 *  author       pxgamer
 */

function csrf() {
    'use strict';

    return $('form input[name="csrf_token"]').val();
}