Oddly enough, I kind of miss the ROBLOX ads on the dev forums

Allowed me to see some entertainment when just refreshing.

Anyone else kinda-sorta-maybe miss 'em?

  • Ads? EWWWWWWWW
  • Kinda-Sorta-Maybe
  • Yeah

0 voters

1 Like

I miss them. I love the current white theme but some roblox ads on the sides would be great.

1 Like

I might miss them if ads that weren’t clickbait, drawn in Paint, copies, or cookie cutter designs advertising some super generic war/country/clothing group showed up more than once in a blue moon, but that’s not the case. User-made ads in general would look so out of place with Discourse’s UI, so I’m glad we don’t have them here.

3 Likes

I thought maybe I could write a script to throw some ads on the side, but as usual discourse defeats me with it’s ajax voodoo. The function itself works, but I’m having trouble figuring out how to detect when a new page is navigated to, so I can rerun it.

// ==UserScript==
// @name        Dev forum ads
// @namespace   Artex
// @include     http://devforum.roblox.com/*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==
var ad = null;
var insertAt = document.getElementById("main-outlet");

function insertAd() {
  
  var iframe = document.createElement("iframe");
  iframe.src = "http://www.roblox.com/userads/2";
  iframe.height = "600";
  iframe.width = "160";
  iframe.scrolling = "no";
  iframe.frameborder = "0";
  iframe.allowtransparency = "true";
  iframe.style.float = "right";
  iframe.style.margin = "0px 0px -600px 0px";
  iframe.style.position = "relative";
  iframe.style.top = "100px";
  
  insertAt.insertBefore(iframe, insertAt.firstElementChild);
  ad = iframe;
}

var mutation = new MutationObserver(function (e) {
  if (insertAt.contains(ad) == false) {
    insertAd();
  }
});

mutation.observe(insertAt, { childList: true });

insertAd();


1 Like

Never thought we’d run into this problem: “We must hack ads onto our web pages!”

4 Likes