User:Happy-melon/vector.js

$(document).ready(function{	if( mw.config.get('wgCanonicalNamespace') == 'Special' && mw.config.get('wgCanonicalSpecialPageName') == 'Code' && mw.config.get('wgCodeReviewRepository') == 'MediaWiki' ){		var rev = $('.mw-codereview-meta tr:nth-child(2) b').text;		if(!rev) return;		rev = Number(rev.substr(1));		if(!rev) return;

if( rev < 1284 ) { version = "pre-1.1"; } else if( rev < 2160 ) { version = "1.1"; } else if( rev < 2548 ) { version = "1.2"; } else if( rev < 3655 ) { version = "1.3"; } else if( rev < 6439 ) { version = "1.4"; } else if( rev < 10329 ) { version = "1.5"; } else if( rev < 13500 ) { version = "1.6"; } else if( rev < 15386 ) { version = "1.7"; } else if( rev < 16913 ) { version = "1.8"; } else if( rev < 18954 ) { version = "1.9"; } else if( rev < 21728 ) { version = "1.1"; } else if( rev < 25545 ) { version = "1.11"; } else if( rev < 31056 ) { version = "1.12"; } else if( rev < 37956 ) { version = "1.13"; } else if( rev < 45489 ) { version = "1.14"; } else if( rev < 48811 ) { version = "1.15"; } else if( rev < 62817 ) { version = "1.16"; } else if( rev < 77974 ) { version = "1.17"; } else if( rev < 92475 ) { version = "1.18"; } else {                 version = "1.19"; }

$('.mw-codereview-meta tr:nth-child(3) td:last-child').append(" (" + version + ")"); } });