استبعاد الموضوع من إعلانات أدسنس

I’m using plain old AdSense, so I’m afraid that won’t work.

Hmmm, but that would take the topics out of the context of their current category. I don’t think that’s a good idea either.

So far, I’ve tried writing some CSS rules that use the [data-topic-id="12345"] selector to target the adsense blocks on that page and set them to display:none, but that selector doesn’t get used until the posts stream. Since I also have an ad at the very top of the page, I can’t target it.

So perhaps I can write some Javascript to just compare the current topic ID to a defined list and use jQuery to insert some styling ad needed.

The question is now: how can I access the topic ID from Javascript, in a way that doesn’t require any additional server requests?