CSRF Grabber

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

Verzia zo dňa 11.05.2016. Pozri najnovšiu verziu.

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @require https://update.greatest.deepsurf.us/scripts/19500/125165/CSRF%20Grabber.js

// ==UserScript==
// @name         CSRF Grabber
// @namespace    PXgamer
// @version      0.1
// @description  A library for getting the current csrf token for POSTs on Kickass Torrents.
// @author       PXgamer
// @include      *kat.cr*
// @grant        none
// ==/UserScript==

function csrf() {
    'use strict';

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