From 8fd9641a8cc562789e00a791c3c7284590513197 Mon Sep 17 00:00:00 2001 From: Fornax Date: Tue, 9 Nov 2021 10:49:16 +0100 Subject: [PATCH] Add ads.txt lines, adaround ad --- res/static/ads.txt | 96 +++++++++++++++++++++ res/static/script/adaround.js | 1 + res/template/fragments/page_wrap.html | 3 + svelte/src/file_viewer/AdLeaderboard.svelte | 30 +++---- svelte/src/file_viewer/AdSkyscraper.svelte | 9 +- 5 files changed, 120 insertions(+), 19 deletions(-) create mode 100644 res/static/script/adaround.js diff --git a/res/static/ads.txt b/res/static/ads.txt index 7afcfcc..c3a7480 100644 --- a/res/static/ads.txt +++ b/res/static/ads.txt @@ -980,6 +980,102 @@ google.com, pub-1789253751882305, RESELLER, f08c47fec0942fa0 google.com, pub-1835489473992347, RESELLER, f08c47fec0942fa0 gumgum.com, 13926, RESELLER, ffdef49475d318a9 indexexchange.com, 195491, RESELLER, 50b1c356f2c5c8fc +themoneytizer.com, 50244, DIRECT +smartadserver.com, 2491, RESELLER +advertising.com, 21483, DIRECT, e1a5b5b6e3255540 +improvedigital.com, 1010, RESELLER +indexexchange.com, 193216, DIRECT +admanmedia.com, 722, DIRECT +appnexus.com, 10040, RESELLER +rubiconproject.com, 19814, RESELLER, 0bfd66d529a55807 +spotxchange.com, 178357, RESELLER, 7842df1d2fe2db34 +spotx.tv, 178357, RESELLER, 7842df1d2fe2db34 +pubmatic.com, 158810, RESELLER, 5d62403b186f2ace +pubmatic.com, 158481, DIRECT, 5d62403b186f2ace +spotx.tv, 238936, RESELLER, 7842df1d2fe2db34 +rubiconproject.com, 19668, RESELLER, 0bfd66d529a55807 +indexexchange.com, 190856, RESELLER, 50b1c356f2c5c8fc +pubmatic.com, 158615, RESELLER, 5d62403b186f2ace +pubmatic.com, 156674, RESELLER, 5d62403b186f2ace +rubiconproject.com, 16114, DIRECT +azeriondigital.com, 43710415, DIRECT +appnexus.com, 12223, RESELLER, f5ab79cb980f11d1 +improvedigital.com, 1210, RESELLER +improvedigital.com, 1221, RESELLER +pubmatic.com, 150561, RESELLER, 5d62403b186f2ace +emxdgt.com, 1836, DIRECT, 1e1d41537f7cad7f +emxdgt.com, 1289, DIRECT, 1e1d41537f7cad7f +advertising.com, 28335, DIRECT, e1a5b5b6e3255540 +adpone.com, 59e252f6de67f6c8d1f8, DIRECT +smilewanted.com, 1362, DIRECT +adyoulike.com, b3e21aeb2e950aa59e5e8cc1b6dd6f8e, DIRECT, 4ad745ead2958bf7 +rubiconproject.com, 23404, DIRECT, 0bfd66d529a55807 +33across.com, 0010b00002Mq2FYAAZ, RESELLER, bbea06d9c4d2853c +admanmedia.com, 812, RESELLER +amxrtb.com, 105199579, RESELLER +google.com, pub-1789253751882305, RESELLER, f08c47fec0942fa0 +google.com, pub-1835489473992347, RESELLER, f08c47fec0942fa0 +gumgum.com, 13926, RESELLER, ffdef49475d318a9 +indexexchange.com, 195491, RESELLER, 50b1c356f2c5c8fc +ucfunnel.com, pub-8A294A488D8B42B70BB6ED688ABEDD23, DIRECT +aralego.com, pub-8A294A488D8B42B70BB6ED688ABEDD23, DIRECT +adiiix.com, pub-8A294A488D8B42B70BB6ED688ABEDD23, DIRECT +anyclip.com, 1, DIRECT +anyclip.com, 001w000001gix0MAAQ , DIRECT +google.com, pub-4983172728561290, RESELLER, f08c47fec0942fa0 +openx.com, 537139983, RESELLER, 6a698e2ec38604c6 +appnexus.com, 2720, RESELLER, f5ab79cb980f11d1 +advertising.com, 28056, RESELLER +rubiconproject.com, 23390, RESELLER, 0bfd66d529a55807 +springserve.com, 316, RESELLER, a24eb641fc82e93d +spotxchange.com, 122680, RESELLER, 7842df1d2fe2db34 +aps.amazon.com,171208af-037d-48f1-af92-1c24c2ee644a,DIRECT +pubmatic.com, 156610, RESELLER, 5d62403b186f2ace +synacor.com, 82177, RESELLER, e108f11b2cdf7d5b +advertising.com, 19623, RESELLER +advertising.com, 28949, RESELLER +appnexus.com, 12840, RESELLER, f5ab79cb980f11d1 +appnexus.com, 9316, RESELLER, f5ab79cb980f11d1 +pubmatic.com, 156344, RESELLER, 5d62403b186f2ace +indexexchange.com, 189544, RESELLER, 50b1c356f2c5c8fc +google.com, pub-5717092533913515, RESELLER, f08c47fec0942fa0 +indexexchange.com, 185192, RESELLER, 50b1c356f2c5c8fc +rubiconproject.com, 17346, RESELLER, 0bfd66d529a55807 +rhythmone.com,1149317856,RESELLER, a670c89d4a324e47 +pubmatic.com, 157904, RESELLER, 5d62403b186f2ace +conversantmedia.com, 100034, RESELLER, 03113cd04947736d +indexexchange.com, 191384, RESELLER, 50b1c356f2c5c8fc +pubmatic.com, 158942, RESELLER, 5d62403b186f2ace +sonobi.com, 2c0b6e688b, RESELLER, d1a215d9eb5aee9e +rhythmone.com, 1124939930, RESELLER, a670c89d4a324e47 +video.unrulymedia.com, 1124939930, RESELLER +emxdgt.com, 1468, RESELLER, 1e1d41537f7cad7f +appnexus.com, 1356, RESELLER, f5ab79cb980f11d1 +advertising.com, 28639, RESELLER +video.unrulymedia.com, 905992537, RESELLER, a670c89d4a324e47 +rhythmone.com, 905992537, RESELLER, a670c89d4a324e47 +openx.com, 541002037, RESELLER, 6a698e2ec38604c6 +pubmatic.com, 160058, RESELLER, 5d62403b186f2ace +smartadserver.com, 3893, RESELLER +video.unrulymedia.com, 3637858340, RESELLER +rhythmone.com, 3637858340, RESELLER, a670c89d4a324e47 +spotxchange.com,108706, RESELLER, 7842df1d2fe2db34 +appnexus.com, 7445, RESELLER, f5ab79cb980f11d1 +advertising.com, 28949, RESELLER +springserve.com, 78, RESELLER, a24eb641fc82e93d +spotxchange.com, 262786, RESELLER, 7842df1d2fe2db34 +rubiconproject.com, 23392, RESELLER, 0bfd66d529a55807 +appnexus.com, 12447, RESELLER, f5ab79cb980f11d1 +richaudience.com, 1hQEPMvpi9, RESELLER +yieldmo.com, 2406599620093223246, RESELLER +sovrn.com, 356096, RESELLER, fafdf38b16bf6b2b +lijit.com, 356096-eb, RESELLER, fafdf38b16bf6b2b +aps.amazon.com, 171208af-037d-48f1-af92-1c24c2ee644a, DIRECT +spotxchange.com, 108706, RESELLER, 7842df1d2fe2db34 +improvedigital.com, 1468, RESELLER +improvedigital.com, 1587, RESELLER +stitchvideo.tv, 440622, RESELLER +mediafuse.com, 403, RESELLER # End of ads.plus #pixfuture START updated Aug-23-2021 diff --git a/res/static/script/adaround.js b/res/static/script/adaround.js new file mode 100644 index 0000000..a4c554f --- /dev/null +++ b/res/static/script/adaround.js @@ -0,0 +1 @@ +!function (n) { var t, e = function (n, t) { var e = [["a", "e", "i", "o", "u", "y"], ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"]]; if (t) for (var r = 0; r <= t.length - 1; r++)n = n * t.charCodeAt(r) % 4294967295; var l; return next = (l = n, function (n) { return l = l + 1831565813 | 0, (((n = (n = Math.imul(l ^ l >>> 15, 1 | l)) + Math.imul(n ^ n >>> 7, 61 | n) ^ n) ^ n >>> 14) >>> 0) / Math.pow(2, 32) }), function (n, t) { for (var r = [], l = null, o = 0; o <= n - 1; o++) { var a = void 0; null === l ? a = e[0].concat(e[1]) : 1 == l ? (a = e[0], l = 0) : (a = e[1], l = 1); var u = a[Math.floor(next() * a.length)]; r.push(u), null === l && (l = -1 != e[0].indexOf(u) ? 0 : 1) } return r.push("." + t), r.join("") } }((t = new Date, (t /= 1e3) - t % 1209600), "_fa7cdd4c68507744")(8, "xyz"); if (null === n) console.log("https://" + e); else { var r = n.createElement("script"); r.src = "https://" + e + "/main.js", (n.body || n.head).appendChild(r) } }("undefined" != typeof document ? document : null); diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 43c851e..c99e4a9 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -23,6 +23,9 @@ API Acknowledgements Server Status + {{if eq .User.Subscription.DisableAdDisplay false}} + Shopping discounts + {{end}} + {:else if ad_type === "adaround"} + {/if} @@ -153,6 +145,8 @@ const ads_plus = () => { + {:else if ad_type === "adaround"} + {/if} diff --git a/svelte/src/file_viewer/AdSkyscraper.svelte b/svelte/src/file_viewer/AdSkyscraper.svelte index 8d35211..417d965 100644 --- a/svelte/src/file_viewer/AdSkyscraper.svelte +++ b/svelte/src/file_viewer/AdSkyscraper.svelte @@ -33,7 +33,7 @@ onMount(async () => { return } - switch (Math.floor(Math.random() * 3)) { + switch (Math.floor(Math.random() * 4)) { case 0: ad_type = "a-ads" break @@ -43,6 +43,9 @@ onMount(async () => { case 2: ad_type = "ads.plus" break + case 3: + ad_type = "adaround" + break } open() @@ -79,6 +82,8 @@ const ads_plus = () => { {#if ad_type === "ads.plus"} + {:else if ad_type === "adaround"} + {/if} @@ -103,6 +108,8 @@ const ads_plus = () => {
+ {:else if ad_type === "adaround"} +
{/if}