User:Endo999/vector.js

importScript("User:Endo999/testvector.js"); //mw.loader.load( '/w/index.php?title=User:Endo999/testvector.js&action=raw&ctype=text/javascript' ); /* var GTT = new Object;

GTT.initialize = function {

var SCbIsIE11 = false; var SCbIsEdge = false; var SCbIsIE9=false; var SCbIsIE6=false; var SCbIsIE8=false; var SCbIsOpera11=false; var SCbIsFirefox35Like=false; var SCbIsFirefox35 = false;

var SCbIsKonqueror = false; var SCbIsSafari=false; var SCbIsChrome=false; var SCbIsOpera=false; var SCbIsMozilla=false; var SCbIsSafari = false; var SCbIsPre4Safari = false;

if(navigator.appVersion.match(/Trident.*rv[: ]([0-9][0-9])\./i)) { var version1 = new Number(RegExp.$1); if(version1 >= 11) { SCbIsFirefox35=false; SCbIsSafari=false; SCbIsChrome=false; SCbIsOperal11=false; SCbIsIE9 = true; SCbIsIE = false; SCbIsFirefox35Like=true; SCbIsMozilla = true; SCbIsIE11 = true; } } if(navigator.appVersion.match(/MSIE/i)) { SCbIsIE = true; if(navigator.userAgent.indexOf('MSIE 8') != -1 ||    navigator.userAgent.indexOf('MSIE 9') != -1    ) SCbIsIE8 = true; if(navigator.userAgent.indexOf('MSIE 6') != -1) SCbIsIE6 = true; if(navigator.userAgent.match(/MSIE ([0-9]+)/)) {    var version1 = new Number(RegExp.$1); if(version1 >= 8) SCbIsIE8 = true; if(version1 >= 9) SCbIsIE9 = true; } } if(navigator.appVersion.match(/Safari/i)) { SCbIsSafari = true; if(navigator.userAgent.indexOf('Version/3.')!= -1 ||  navigator.userAgent.indexOf('Version/2.')!= -1  ) {    SCbIsPre4Safari = true; }

}

if(navigator.appVersion.match(/Chrome/i)) { SCbIsSafari = false; SCbIsChrome = true; }

if(navigator.appVersion.match(/Konqueror/i)) { SCbIsKonqueror = true; } if(navigator.appName.match(/Opera/i)) { SCbIsOpera = true;

if(navigator.userAgent.match(/Version\/([0-9]+)\.([0-9]+)/)) {    var version1 = new Number(RegExp.$1); var version2 = new Number(RegExp.$2); // if(version1 >= 11) //     SCbIsOpera11 = true; SCbIsOpera11 = false; }

} if(navigator.appName.match(/Netscape/i)) { SCbIsMozilla = true; } if(navigator.userAgent.match(/Firefox\/([0-9]+)\.([0-9]+)/)) {    var version1 = new Number(RegExp.$1); var version2 = new Number(RegExp.$2); if(version1 >= 3 && version2 >= 5) SCbIsFirefox35 = true; if(version1 >= 4) SCbIsFirefox35 = true; }

if(navigator.appVersion.match(/Trident.*rv[: ]([0-9][0-9])\./i)) { var version1 = new Number(RegExp.$1); if(version1 >= 11) {

SCbIsFirefox35=false; SCbIsSafari=false; SCbIsChrome=false; SCbIsOperal11=false; SCbIsIE9 = true; SCbIsIE = false; SCbIsFirefox35Like=true; SCbIsMozilla = true; SCbIsIE11 = true; } } if(navigator.userAgent.match(/Edge/i)) { SCbIsEdge = true; SCbIsIE9 = true; } if(SCbIsFirefox35 || SCbIsSafari || SCbIsChrome||SCbIsOpera11||SCbIsIE9) SCbIsFirefox35Like = true; else SCbIsFirefox35Like = false;

if(SCbIsFirefox35Like) mw.loader.load( '/w/index.php?title=User:Endo999/NewGoogleTrans.js&action=raw&ctype=text/javascript' ); else mw.loader.load( '/w/index.php?title=User:Endo999/OldGoogleTrans.js&action=raw&ctype=text/javascript' );

};

GTT.initialize;