From ea0ee46b51a29842c094f4b4964694df3bf30156 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Mon, 27 Jan 2014 08:22:32 -0500 Subject: [PATCH] Fix homepage ads removal #8 --- src/kijiji/javascript/all.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kijiji/javascript/all.js b/src/kijiji/javascript/all.js index cc34559..275686f 100644 --- a/src/kijiji/javascript/all.js +++ b/src/kijiji/javascript/all.js @@ -15,9 +15,13 @@ init = function() { /* Page: Category listing {{{*/ - if ($('.area-home-pg').length) { + if ($('#gpt-rightrail-top').length) { // Remove Ads - $('.ahRht').remove() + $('#gpt-rightrail-top').parents('.col-2').each(function(){ + var $this = $(this) + $this.next('.col-1').removeClass('col-1') + $(this).remove() + }) // Remove random useless ads on home $('#hpgctr').remove().after('br').remove()