// ==UserScript==
// @name Monkey4Mu
// @namespace my
// @description page lodeded and useso fonts for http (https not supported)
// @include http*
// @grant none
// ==/UserScript==
window.addEventListener(
'load',
function (e) {
var MyURL=window.location.href;
document.title += "#";
if(MyURL.search("live.com")>0){
LocPos("id","i0116",0);
}else if(MyURL.match("5121/cgi-bin|myportal.sxu|sslvpn.sxu")){
LocPos("id","username",0);
}else if(MyURL.search("neu6.edu")>0){
LocPos("name","username",0);
}else if(MyURL.search("exmail.qq")>0){
LocPos("id","inputuin",0);
}else if(MyURL.search(".mail.qq")>0){
LocPos("id","u",0);
}else if(MyURL.search("8080/appform")>0){
LocPos("id","j_username",0);
}else if(MyURL.search("8081/RSS")>0){
LocPos("name","login",0);
}else if(MyURL.search("vasp.at")>0){
LocPos("id","mod_login_username",0);
}else if(MyURL.search("8081/WordPress")>0){
LocPos("id","user_login",0);
}else if(MyURL.search("mail.sxu")>0){
LocPos("id","qquin",0);
}else if(MyURL.search("8080/pmmp")>0){
LocPos("id","name",0);
}else if(MyURL.search("10021")>0){
LocPos("name","username",0);
}else if(MyURL.search("linggle.com")>0){
LocPos("id","search-bar",0);
}
}, false)
function HeadEleRep(OldSite,NewSite) {
var head = document.getElementsByTagName('head')[0];
if (!head) { return; }
head.innerHTML=head.innerHTML.replace(OldSite,NewSite);
}
function LocPos(intype,intag,arrid){
if(intype.match("id|Id")){
var checktag = document.getElementById(intag);
}else if(intype.match("name|Name")){
var checktag = document.getElementsByName(intag)[arrid];
}else if(intype.match("all|All")){
var checktag = document.all(intag);
}
if (checktag != null){
checktag.focus();
}
}
var MyURL=window.location.href;
if(MyURL.search("live.com")>0){
LocPos("id","i0116",0);
}else if(MyURL.match("5121/cgi-bin|myportal.sxu|sslvpn.sxu")){
LocPos("id","username",0);
}else if(MyURL.search("neu6.edu")>0){
LocPos("name","username",0);
}else if(MyURL.search("exmail.qq")>0){
LocPos("id","inputuin",0);
}else if(MyURL.search(".mail.qq")>0){
LocPos("id","u",0);
}else if(MyURL.search("8080/appform")>0){
LocPos("id","j_username",0);
}else if(MyURL.search("8081/RSS")>0){
LocPos("name","login",0);
}else if(MyURL.search("vasp.at")>0){
LocPos("id","mod_login_username",0);
//HeadEleRep('.googleapis.com','.useso.com');
}else if(MyURL.search("8081/WordPress")>0){
LocPos("id","user_login",0);
}else if(MyURL.search("mail.sxu")>0){
LocPos("id","qquin",0);
}else if(MyURL.search("8080/pmmp")>0){
LocPos("id","name",0);
}else if(MyURL.search("10021")>0){
LocPos("name","username",0);
}else if(MyURL.search("linggle.com")>0){
LocPos("id","search-bar",0);
}