From 0841224a619b9b51ca15bb6c147a1102f7c1efe6 Mon Sep 17 00:00:00 2001 From: peshomir <80340328+peshomir@users.noreply.github.com> Date: Mon, 3 Nov 2025 16:42:52 +0200 Subject: [PATCH] Add an option to hide the propaganda popup --- patches/misc.js | 12 ++++++++++++ src/settings.js | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 patches/misc.js diff --git a/patches/misc.js b/patches/misc.js new file mode 100644 index 0000000..fc48058 --- /dev/null +++ b/patches/misc.js @@ -0,0 +1,12 @@ +import { definePatch } from "../modUtils.js" + +export default definePatch(({ insertCode }) => { + + // Hide propaganda popup + insertCode(`/* here */ + a = b.c + 60 * 1000; + (new ea()).show(eS.eb, eS.colors, eS.id); + eS = null; + return true;`, `if (__fx.settings.hidePropagandaPopup) return;`) + +}) \ No newline at end of file diff --git a/src/settings.js b/src/settings.js index d994d02..5b87d5c 100644 --- a/src/settings.js +++ b/src/settings.js @@ -26,6 +26,7 @@ var settings = { customBackgroundUrl: "", keybindButtons: false, attackPercentageKeybinds: [], + hidePropagandaPopup: false }; __fx.settings = settings; const discontinuedSettings = ["hideAllLinks", "fontName"]; @@ -92,6 +93,11 @@ const settingsManager = new (function () { label: "Highlight clan spawnpoints", note: "Increases the spawnpoint glow size for members of your clan", }, + { + for: "hidePropagandaPopup", + type: "checkbox", + label: "Hide propaganda popup" + }, { for: "detailedTeamPercentage", type: "checkbox", label: "Detailed team pie chart percentage", @@ -189,7 +195,6 @@ const settingsManager = new (function () { WindowManager.closeWindow("settings"); discontinuedSettings.forEach((settingName) => delete settings[settingName]); localStorage.setItem("fx_settings", JSON.stringify(settings)); - // should probably firgure out a way to do this without reloading - // You can't do it, localstorages REQUIRE you to reload window.location.reload(); };