A library for getting the current csrf token for POSTs on Kickass Torrents.
As of
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/19500/124348/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
// @match *kat.cr*
// @grant none
// ==/UserScript==
function csrf() {
'use strict';
return $('form input[name="csrf_token"]').val();
}