Forum:Found a code to hide advertisements, but don't know how to put it in

I found a code to hide advertisements on the main page of a wiki, but I don't know where to put it in:

Could someone please give me step by step instructions on how to do this? I don't know anything about source code and I don't want to put the code in the wrong place and mess up. Tiria Wildlough  Ee aye eeeh!! 13:00, October 20, 2012 (UTC)


 * Wikia's Terms of Use prohibit you from hiding ads from other users on your wiki:


 * "You further agree... Not to intentionally block, remove, or otherwise obstruct the proper functioning and view of advertisements, and/or user interface and functionality by other users, including but not limited to changing or adding javascript or CSS changes to the Service that would prevent the proper display or function of advertisements and/or user interface and functionality;"


 * So unfortunately, you are not allowed to hide ads on your wiki with the code you have above. However, you are allowed to hide ads for just yourself while logged in. To do that, you can copy/paste your CSS code above into your global.css.


 * Note: you should also go to Special:Preferences. At the bottom you should see the Appearances section. Make sure Ads is set to Don't show all ads. This preferences setting will also help hide many ads for you while you're logged in.


 * Edit: P.S. In the message above, I meant to write global.css instead of "global.js" -- this is CSS, not JavaScript. Sorry for the typo :(


 * Wikia never notice it however, so if you bury the code in the middle of your cs page, it is most likely that no-one will notice.95.145.206.202 15:15, October 20, 2012 (UTC)