Загрузка данных


// ==UserScript==
// @name         Warface: Fetch check-in
// @namespace    http://tampermonkey.net/
// @version      1.0
// @match        https://ru.warface.com/promo/winback*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setTimeout(async () => {
        const fd = new FormData();
        fd.append('activity_name', 'wf_bday_2026');
        try {
            const res = await fetch('https://ru.warface.com/minigames/restorable_progress/api/check-in', {
                method: 'POST',
                credentials: 'include',
                headers: {
                    'accept': '*/*',
                    'accept-language': 'ru-RU,ru;q=0.9',
                    'sec-ch-ua': '"Chromium";v="146", "Not-A.Brand";v="24", "Google Chrome";v="146"',
                    'sec-ch-ua-mobile': '?0',
                    'sec-ch-ua-platform': '"Windows"',
                    'sec-fetch-dest': 'empty',
                    'sec-fetch-mode': 'cors',
                    'sec-fetch-site': 'same-origin'
                },
                body: fd
            });
            console.log('[FETCH] Статус:', res.status);
        } catch(e) { console.error('[FETCH] Ошибка:', e); }
    }, 2000);
})();