12
edits
(Big update.) |
No edit summary |
||
Line 2: | Line 2: | ||
// Webmaster staff icons | // Webmaster staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-WM" style="float:right; display:none;"><a href="/wiki/Archives:Webmasters" title="This user is a Webmaster of Bulbagarden."><img src="http://cdn.bulbagarden.net/media/upload/9/98/IconBAWebmaster.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Advisory Council staff icons | // Advisory Council staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-AC" style="float:right; display:none;"><a href="/wiki/Archives:Advisory_Council" title="This user is a member of the Bulbagarden Archives Advisory Council."><img src="http://cdn.bulbagarden.net/media/upload/e/e2/IconBAAdvisoryCouncil.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Bureaucrat staff icons | // Bureaucrat staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-BC" style="float:right; display:none;"><a href="/wiki/Archives:Bureaucrats" title="This user is a Bulbagarden Archives Bureaucrat."><img src="http://cdn.bulbagarden.net/media/upload/7/7b/IconBABureaucrat.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Senior Administrator staff icons | // Senior Administrator staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-SA" style="float:right; display:none;"><a href="/wiki/Archives:Senior_Administrators" title="This user is a Bulbagarden Archives Senior Administrator."><img src="http://cdn.bulbagarden.net/media/upload/3/34/IconBASeniorAdministrator.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Administrator staff icons | // Administrator staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-AD" style="float:right; display:none;"><a href="/wiki/Archives:Administrators" title="This user is a Bulbagarden Archives Administrator."><img src="http://cdn.bulbagarden.net/media/upload/d/df/IconBAAdministrator.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Junior Administrator staff icons | // Junior Administrator staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-JA" style="float:right; display:none;"><a href="/wiki/Archives:Junior_Administrators" title="This user is a Bulbagarden Archives Junior Administrator."><img src="http://cdn.bulbagarden.net/media/upload/8/86/IconBAJuniorAdministrator.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); | ||
// Inactive staff icons | // Inactive staff icons | ||
$(document).ready(function () { | |||
if( | |||
window.location.href.indexOf("/wiki/User:") == -1 | |||
) { | |||
if( | |||
window.location.href.indexOf("/wiki/User_talk:") == -1 | |||
) { | |||
return; | |||
} | |||
}; | |||
// create div and set innerHTML to link | |||
var divContainer = document.createElement("div"); | |||
divContainer.innerHTML = '<div class="stafflink-IN" style="float:right; display:none;"><a href="/wiki/Archives:Inactive_Staff" title="This user is an inactive Bulbagarden Archives staff member. Please direct your inquiries to an active staff member."><img src="http://cdn.bulbagarden.net/media/upload/b/b5/IconBAInactive.png"></a></div>'; | |||
// insert divContainer into the DOM below the h1 | |||
if(window.location.href.indexOf("&action=edit") == -1) { | |||
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]); | |||
} | |||
}); | }); |