Всем привет. Многие мамины бизнесмены продают копии сайтов aviamaster для создания крео но сегодня мы разрушим им бизнес Что нам понадобится? Tampermonkey - скачать IOS - Stay Android - Не пользуюсь. ищите сами Данный сайт - тык переходим и жмем demo play Как все скачали,просто добавляем данный скрипт и перезагружаем страницу - все Если вам нужна другая валюта то ищим это и меняем json.options.currency.code = "RUB"; json.options.currency.symbol = "₽"; Чтоб много места не занимать // ==UserScript== // @name BGaming Currency Patch (FUN → RUB) // @namespace http://tampermonkey.net/ // @version 1.2 // @description Replaces FUN currency with RUB in BGaming Aviamasters init responses only // @match https://demo.bgaming-network.com/games/Aviamasters/* // @grant none // @run-at document-start // @noframes // ==/UserScript== (function () { 'use strict'; const originalFetch = window.fetch; window.fetch = async (...args) => { const [url, config] = args; const isTarget = url.includes("/api/Aviamasters/") && config?.method?.toUpperCase() === "POST" && config?.body?.includes('"command":"init"'); if (isTarget) { console.log("[TM] Intercepting init request:", url); const response = await originalFetch(...args); const cloned = response.clone(); const json = await cloned.json(); if ( json?.options?.currency?.code === "FUN" && json?.flow?.command === "init" ) { console.log("[TM] Patching currency FUN → RUB"); json.options.currency.code = "RUB"; json.options.currency.symbol = "₽"; return new Response(JSON.stringify(json), { status: response.status, statusText: response.statusText, headers: response.headers, }); } return response; } return originalFetch(...args); }; })(); JS // ==UserScript== // @name BGaming Currency Patch (FUN → RUB) // @namespace http://tampermonkey.net/ // @version 1.2 // @description Replaces FUN currency with RUB in BGaming Aviamasters init responses only // @match https://demo.bgaming-network.com/games/Aviamasters/* // @grant none // @run-at document-start // @noframes // ==/UserScript== (function () { 'use strict'; const originalFetch = window.fetch; window.fetch = async (...args) => { const [url, config] = args; const isTarget = url.includes("/api/Aviamasters/") && config?.method?.toUpperCase() === "POST" && config?.body?.includes('"command":"init"'); if (isTarget) { console.log("[TM] Intercepting init request:", url); const response = await originalFetch(...args); const cloned = response.clone(); const json = await cloned.json(); if ( json?.options?.currency?.code === "FUN" && json?.flow?.command === "init" ) { console.log("[TM] Patching currency FUN → RUB"); json.options.currency.code = "RUB"; json.options.currency.symbol = "₽"; return new Response(JSON.stringify(json), { status: response.status, statusText: response.statusText, headers: response.headers, }); } return response; } return originalFetch(...args); }; })();
krutyshkin, я не до конца понял, я с этим расширением смогу скачать эту игру и установить на свой сайт?