User blog:Mara the Marine Marauder/Hiding Wikia Ads with Your Personal CSS

Disclaimer
I don't know what I'm doing. I don't exactly know how or why this works. I don't guarantee that it will work for others, or that it will not cause undesirable side effects. I don't guarantee anything!

Also, I won't explain much.

What It Does
This trick hides wikia ads so you don't have to see them (while you're logged in with your wikia account).

The way I did it, it only does so for the Habitica wiki, and (I think) only for my laptop, not for my mobile. But depending on where you save this bit of CSS code, you can probably do it for all wikia wikis and different devices.

What It Doesn't Do
It doesn't hide ads from other people who look at Habitica wiki pages. (I've read that, while wiki admins might technically be able to do that for a whole wiki, it would be against wikia's Terms of Use.)

The Trick
I put the following into my wikia.css: /* Remove the following: * Top ads, top-right ads, misc. ads on rail, ad captions, * bottom ads, unnecessary placeholder, * ads that appear inside content, "Around Wikia's network" box, "Wikia lifestyle" box, * "Trending Fandom Articles" */ .WikiaTopAds, .home-top-right-ads, .wikia-ad, .SelfServeUrl, #WikiaArticleBottomAd, .WikiaAdInContentPlaceHolder, .WikiaAdInContent, #WikiaFooter, .branding, #RECIRCULATION_RAIL { display:none !important; }

Sources, Help, Explanations

 * http://community.wikia.com/wiki/Help:Personal_CSS_and_JS explains various personal CSS and JS customizations.
 * http://dev.wikia.com/wiki/AdRailRemove is where I found most of the CSS stuff above.
 * http://community.wikia.com/wiki/Thread:1013481 is where I found the part that hides the "Trending Fandom Articles".
 * User blog:LadyAlys/"Information for Developers" Sections on Content Pages gave me the idea that this might be possible. (It's about something rather different but uses the personal wikia stylesheet, too.)

Apologies

 * for starting a new blog page while still not having cleaned up my old outdated ones! I found this too enjoyable to keep it to myself. I hope you'll enjoy it, too!
 * for probably not answering much on this blog page in the future. I'm still busy cleaning up my other wiki stuff, or at least I should be! Plus I don't really have a clue, I already said all I know about the topic here. Plus there's real life...
 * If this causes any technical, legal, or other problems that I'm not aware of, I'm apologizing for that, too. If I shouldn't blog about it, please tell me, and I'll remove the blog. If I shouldn't have it in my personal CSS stylesheet, please tell me, and I'll remove that, too.