|
|
Line 377: |
Line 377: |
|
| |
|
|
| |
|
| /** IPv6 AAAA connectivity testing **/ | | /** IPv6 AAAA connectivity testing |
|
| |
|
| var __ipv6wwwtest_factor = 100; | | var __ipv6wwwtest_factor = 100; |
Line 384: |
Line 384: |
| importScript("MediaWiki:Common.js/IPv6.js"); | | importScript("MediaWiki:Common.js/IPv6.js"); |
| } | | } |
| | **/ |
|
| |
|
| /** Magic editintros **************************************************** | | /** Magic editintros **************************************************** |
Line 682: |
Line 683: |
| }) | | }) |
| } | | } |
|
| |
|
| |
| /** Table sorting fixes ************************************************
| |
| *
| |
| * Description: Disables code in table sorting routine to set classes on even/odd rows
| |
| * Maintainers: [[User:Random832]]
| |
| */
| |
|
| |
| ts_alternate_row_colors = false;
| |
|
| |
|
| |
| /***** uploadwizard_newusers ********
| |
| * Switches in a message for non-autoconfirmed users at [[Wikipedia:Upload]]
| |
| *
| |
| * Maintainers: [[User:Krimpet]]
| |
| ****/
| |
| function uploadwizard_newusers() {
| |
| if (wgNamespaceNumber == 4 && wgTitle == "Upload" && wgAction == "view") {
| |
| var oldDiv = document.getElementById("autoconfirmedusers"),
| |
| newDiv = document.getElementById("newusers");
| |
| if (oldDiv && newDiv) {
| |
| if (typeof wgUserGroups == "object" && wgUserGroups) {
| |
| for (i = 0; i < wgUserGroups.length; i++) {
| |
| if (wgUserGroups[i] == "autoconfirmed") {
| |
| oldDiv.style.display = "block";
| |
| newDiv.style.display = "none";
| |
| return;
| |
| }
| |
| }
| |
| }
| |
| oldDiv.style.display = "none";
| |
| newDiv.style.display = "block";
| |
| return;
| |
| }
| |
| }
| |
| }
| |
| addOnloadHook(uploadwizard_newusers);
| |
|
| |
|
| |
|
|
| |
|