Remove right side ad banner

in Ideas and script requests
Subscribe to Remove right side ad banner 2 posts, 2 voices

Michael Laniak User

I am learning to code but would love to see how or if someone could create a script for removing the right side ad banner on this website -->

Using chrome's "inspect element" I believe this is the code (iframe id="adframe") that brings it up (*at bottom of post). When I edit it, the site seems to refresh and bring back the bar. Any creative ways of removing the ad banner would be tremendously appreciated.

<!-- <iframe id="adFrame" scrolling="no" style="width: 160px; height: 549px; position: absolute; top: 0px; left: 1423px; display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 0px;" src="/GoogleAd160.aspx?cbust=0.3967230753041804" frameborder="0" marginheight="0" marginwidth="0" width="0" height="0"> </iframe> -->

JoeSimmons Scriptwright

If I were you, I'd just install AdBlock so you won't see ANY ads.
But if you wanted to use a script, I'd do this:
var ad = document.getElementById("adFrame");

if(ad !== null) ad.parentNode.removeChild(ad);

Michael Laniak wrote:
the site seems to refresh and bring back the bar
This is interesting. Tell me if the code I gave you works. If the sidebar comes back, I'll add in another method of removing it.