Skip to content

Commit

Permalink
Remove ads - for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwong committed Oct 16, 2011
1 parent 95f3931 commit 830d71c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,12 @@ body {

.feedflare {
display: none;
}

hr {
margin: 15px 0 0 0;
}

h3.headline {
line-height: 20px;
}
3 changes: 2 additions & 1 deletion app/views/home/_item.slim
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ script#item-template(type="text/x-jquery-tmpl")
a(href='${article_link}') ${article_link}
.date ${created_at}

.fb-like data-href="${article_link}" data-send="true" data-width="450" data-show-faces="true"
.fb-like data-href="${article_link}" data-send="true" data-width="450" data-show-faces="true"
hr
3 changes: 3 additions & 0 deletions public/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ $(function(){

// Ask facebook to re-parse after ajax
$(document).ajaxComplete(function(){
// Hide ads
$('a[href^="http://feedads"]').parent().hide();

try {
FB.XFBML.parse();
} catch(ex){}
Expand Down

0 comments on commit 830d71c

Please sign in to comment.