MediaWiki:Gadget-nsShortener.js

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