Skip to content

Commit

Permalink
Fix homepage ads removal #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsirois committed Jan 27, 2014
1 parent d880dec commit ea0ee46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/kijiji/javascript/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea0ee46

Please sign in to comment.