Skip to content

Commit

Permalink
Fix Listing page ads removal #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsirois committed Jan 27, 2014
1 parent ea0ee46 commit e7b0b4d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/kijiji/javascript/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ init = function() {

/* Page: Ads listing (browsing, my favorite, all user ads) {{{*/

if ($('#sbResultsListing').length || $('.adsTable').length || $('#tableDefault').length) {
// if ($('#sbResultsListing').length || $('.adsTable').length || $('#tableDefault').length) {
if ($('.container-results').length) {

/* ListingOnload {{{*/

var loadedAds = Array(),
listingOnload = function() {
// Remove Ads
$('.sbBucket, #topAdSense, #bottomAdSense, #bottomAdCCBucket').remove()
$('#inlineBanner').parents('.resultsTableSB').remove()
$('#adlink').next('p').next('div').remove()
$('.paginationBottomBg').next('div').remove()
$('#gpt-leaderboard-top, #gpt-leaderboard-base, #gpt-minileaderboard-base, #InlineBanner, .skyscraper').remove()

// Remove Commercial Ads
$('.adsense-top-bar, .adsense-container').remove()

// Remove Useless Popular search word
$('.popWords').remove()
Expand Down

0 comments on commit e7b0b4d

Please sign in to comment.