CSRF Grabber

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

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/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();
}

QingJ © 2025

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