'); } if ($(form).attr("method") != "get") { $(form).append(''); } } $(document).on('submit', 'form', function () { if ($(this).attr("method") != "get") { $(this).append(''); } if ($(this).attr("method") != "get") { $(this).append(''); } return true; }); jQuery.ajaxSetup({ beforeSend: function (e, data) { //console.log(Object.getOwnPropertyNames(data).sort()); //console.log(data.type); if (data.type !== 'POST') return; if (typeof data.data === 'object' && data.data !== null) { data.data.append("YBsb-RtvpEj", "oXg.NpG1R0Y"); data.data.append("puzRIboDxeMmEW", "hxAbk0GNcVI]nK"); } else { data.data = data.data + '&YBsb-RtvpEj=oXg.NpG1R0Y&puzRIboDxeMmEW=hxAbk0GNcVI]nK'; } } }); });