From 35ec72707c1a6d3d7897e2971a9829eb5ae60f71 Mon Sep 17 00:00:00 2001 From: Fornax Date: Mon, 5 Feb 2024 14:07:22 +0100 Subject: [PATCH] Add an ad for an ad blocker, for the lolz --- svelte/src/file_viewer/BottomBanner.svelte | 55 +++++++--------------- 1 file changed, 17 insertions(+), 38 deletions(-) diff --git a/svelte/src/file_viewer/BottomBanner.svelte b/svelte/src/file_viewer/BottomBanner.svelte index 8ae47bf..9e8beac 100644 --- a/svelte/src/file_viewer/BottomBanner.svelte +++ b/svelte/src/file_viewer/BottomBanner.svelte @@ -4,15 +4,18 @@ import { onMount } from "svelte" let ad_type = "" onMount(() => { - // 20% pixeldrain socials + // 30% pixeldrain socials // 20% reviews - // 60% patreon + // 10% ad block promo + // 40% patreon let rand = Math.random() if (rand < 0.3) { ad_type = "socials" } else if (rand < 0.5) { ad_type = "reviews" + } else if (rand < 0.6) { + ad_type = "ad_block" } else { ad_type = "patreon_support" } @@ -89,17 +92,19 @@ onMount(() => { -{:else if ad_type === "slava_ukraini"} - - +{:else if ad_type === "ad_block"} + {/if}