MediaWiki:Gadget-nsShortener.js

/* NS: -2         Media: */// Only exists in fantasies /* NS: -1       Special: */$( 'a:contains("Special:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Special:', 'S:' ) ); } ); /* NS: 0          (main) */// Nothing to shorten /* NS: 1           Talk: */$( 'a:contains("Talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Talk:', 't:' ) ); } ); /* NS: 2           User: */$( 'a:contains("User:")' ).each( function {	$( this ).html( $( this ).html.replace( 'User:', 'U:' ) ); } ); /* NS: 3      User_talk: */$( 'a:contains("User talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'User talk:', 'Ut:' ) ); } ); /* NS: 4       DDO_wiki: */$( 'a:contains("DDO wiki:")' ).each( function {	$( this ).html( $( this ).html.replace( 'DDO wiki:', 'DDO:' ) ); } ); /* NS: 5  DDO_wiki_talk: */$( 'a:contains("DDO wiki talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'DDO wiki talk:', 'DDOt:' ) ); } ); /* NS: 6           File: */$( 'a:contains("File:")' ).each( function {	$( this ).html( $( this ).html.replace( 'File:', 'F:' ) ); } ); /* NS: 7      File_talk: */$( 'a:contains("File talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'File talk:', 'Ft:' ) ); } ); /* NS: 8      MediaWiki: */$( 'a:contains("MediaWiki:")' ).each( function {	$( this ).html( $( this ).html.replace( 'MediaWiki:', 'MW:' ) ); } ); /* NS: 9 MediaWiki_talk: */$( 'a:contains("MediaWiki talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'MediaWiki talk:', 'MWt:' ) ); } ); /* NS: 10      Template: */$( 'a:contains("Template:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Template:', 'T:' ) ); } ); /* NS: 11 Template_talk: */$( 'a:contains("Template talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Template talk:', 'Tt:' ) ); } ); /* NS: 12          Help: */$( 'a:contains("Help:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Help:', 'H:' ) ); } ); /* NS: 13     Help_talk: */$( 'a:contains("Help talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Help talk:', 'Ht:' ) ); } ); /* NS: 14      Category: */$( 'a:contains("Category:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Category:', 'C:' ) ); } ); /* NS: 15 Category_talk: */$( 'a:contains("Category talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Category talk:', 'Ct:' ) ); } ); /* NS:200         Forum: */$( 'a:contains("Forum:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Forum:', 'f:' ) ); } ); /* NS:201    Forum_talk: */$( 'a:contains("Forum talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Forum talk:', 'ft:' ) ); } ); /* NS:274        Widget: */$( 'a:contains("Widget:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Widget:', 'W:' ) ); } ); /* NS:275   Widget_talk: */$( 'a:contains("Widget talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Widget talk:', 'Wt:' ) ); } ); /* NS:500          Item: */$( 'a.item' ).each( function {	$( this ).html( 'I:' + $( this ).html ); } ); /* NS:501     Item talk: */$( 'a:contains("Item talk:")' ).each( function {	$( this ).html( $( this ).html.replace( 'Item talk:', 'It:' ) ); } );