Skip to content

Commit

Permalink
Show title for imgur files
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed Dec 4, 2013
1 parent de4f77f commit 8bba878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions earl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ sub get_response {
# Convert ajax URLs to non-js URLs (e.g. Twitter)
# http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html
$url =~ s/#!/\?_escaped_fragment_=/;
$url =~ s#(//i.imgur.com/[^.]+)\.[^.]+$#$1#;

# BBC News article: headline and summary paragraph
if ( $url =~ m'^http://www\.bbc\.co\.uk/news/[-a-z]*-\d{7,}$' ) {
Expand Down

0 comments on commit 8bba878

Please sign in to comment.