User:Mattflaschen/common.js

From OpenStreetMap Wiki
Jump to: navigation, search
var $random = $( '<li>' ).attr( 'id', 'n-randompage' ),
    $randomLink = $( '<a>' ).attr( 'href', '/wiki/Special:Random' ).text( 'Random article' );

$random.append( $randomLink );
$random.insertBefore( $( '#n-recentchanges' ) );