Changeset 16926

Show
Ignore:
Timestamp:
08/01/08 08:54:45 (11 months ago)
Author:
tokuhirom
Message:

added target="_blank".

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/mobirc/trunk/lib/App/Mobirc/Plugin/MessageBodyFilter/Clickable.pm

    r13013 r16926  
    9393        $out = 
    9494        sprintf( 
    95             '<a href="%s%s" rel="nofollow" class="url">%s</a>', 
     95            '<a href="%s%s" rel="nofollow" class="url" target="_blank">%s</a>', 
    9696            encode_entities($self->redirector, q(<>&")), 
    9797            $encoded_uri, 
    9898            $link_string ); 
    9999    } else { 
    100         $out = qq{<a href="$encoded_uri" rel="nofollow" class="url">$link_string</a>}; 
     100        $out = qq{<a href="$encoded_uri" rel="nofollow" class="url" target="_blank">$link_string</a>}; 
    101101    } 
    102102    if ( $self->au_pcsv ) { 
    103         $out .= qq{<a href="device:pcsiteviewer?url=$encoded_uri" rel="nofollow" class="au_pcsv">[PCSV]</a>}; 
     103        $out .= qq{<a href="device:pcsiteviewer?url=$encoded_uri" rel="nofollow" class="au_pcsv" target="_blank">[PCSV]</a>}; 
    104104    } 
    105105    if ( $self->pocket_hatena ) { 
    106106        $out .= 
    107107        sprintf( 
    108             '<a href="http://mgw.hatena.ne.jp/?url=%s;noimage=0;split=1" rel="nofollow" class="pocket_hatena">[ph]</a>', 
     108            '<a href="http://mgw.hatena.ne.jp/?url=%s;noimage=0;split=1" rel="nofollow" class="pocket_hatena" target="_blank">[ph]</a>', 
    109109            uri_escape($uri) ); 
    110110    } 
     
    112112        $out .= 
    113113        sprintf( 
    114             '<a href="http://www.google.co.jp/gwt/n?u=%s;_gwt_noimg=0" rel="nofollow" class="google_gwt">[gwt]</a>', 
     114            '<a href="http://www.google.co.jp/gwt/n?u=%s;_gwt_noimg=0" rel="nofollow" class="google_gwt" target="_blank">[gwt]</a>', 
    115115            uri_escape($uri) ); 
    116116    } 
     
    126126    } 
    127127    return sprintf( 
    128         qq{<a href="%s" rel="nofollow" class="url">%s</a>}, 
     128        qq{<a href="%s" rel="nofollow" class="url" target="_blank">%s</a>}, 
    129129        encode_entities($uri, q(<>&")), 
    130130        encode_entities($link_string, q(<>&")),