Utente:MFH/monobook.js: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
MFH (rosica | curriculum) (Pagina sostituita con 'disablehideEdit = 1; disablealertLoad = 1; buttonPurge = 1; import_script((wgAction=='edit' || wgAction == 'submit'), "Nonciclopedia:Script/Searchbox.js"); import_script(tru…') |
MFH (rosica | curriculum) Nessun oggetto della modifica |
||
Riga 5: | Riga 5: | ||
import_script((wgAction=='edit' || wgAction == 'submit'), "Nonciclopedia:Script/Searchbox.js"); |
import_script((wgAction=='edit' || wgAction == 'submit'), "Nonciclopedia:Script/Searchbox.js"); |
||
import_script(true, "Nonciclopedia:Script/Votazione.js"); |
import_script(true, "Nonciclopedia:Script/Votazione.js"); |
||
/*Funzione per il checkuser*/ |
|||
function addLocator() { |
|||
if (wgPageName != 'Speciale:CheckUser') return; |
|||
var aTags = document.getElementById('checkuserresults').getElementsByTagName('a'); |
|||
if (document.getElementById('subuserips').checked) { |
|||
var cuType = true; |
|||
} |
|||
else { |
|||
var cuType = false; |
|||
} |
|||
for (var i = 0; i < aTags.length; i++) { |
|||
if (cuType && aTags[i].innerHTML == 'Geolocate') { |
|||
var ip = aTags[i].href.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/); |
|||
aTags[i].href = 'http://whatismyipaddress.com/ip/' + ip; |
|||
} |
|||
if (cuType && aTags[i].innerHTML == 'Tor check') { |
|||
var ip = aTags[i].href.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/); |
|||
aTags[i].href = 'https://www.dan.me.uk/torcheck?ip=' + ip; |
|||
} |
|||
if (!cuType && aTags[i].innerHTML.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/)) { |
|||
var ip = aTags.innerHTML; |
|||
aTags[i].innerHTML += '</a> - <a href="http://whatismyipaddress.com/ip/' + ip + '">Geolocate</a> · <a href="https://www.dan.me.uk/torcheck?ip=' + ip + '">Tor check'; |
|||
} |
|||
} |
|||
} |
|||
addOnloadHook(addLocator); |
Versione delle 14:17, 19 set 2010
disablehideEdit = 1;
disablealertLoad = 1;
buttonPurge = 1;
import_script((wgAction=='edit' || wgAction == 'submit'), "Nonciclopedia:Script/Searchbox.js");
import_script(true, "Nonciclopedia:Script/Votazione.js");
/*Funzione per il checkuser*/
function addLocator() {
if (wgPageName != 'Speciale:CheckUser') return;
var aTags = document.getElementById('checkuserresults').getElementsByTagName('a');
if (document.getElementById('subuserips').checked) {
var cuType = true;
}
else {
var cuType = false;
}
for (var i = 0; i < aTags.length; i++) {
if (cuType && aTags[i].innerHTML == 'Geolocate') {
var ip = aTags[i].href.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/);
aTags[i].href = 'http://whatismyipaddress.com/ip/' + ip;
}
if (cuType && aTags[i].innerHTML == 'Tor check') {
var ip = aTags[i].href.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/);
aTags[i].href = 'https://www.dan.me.uk/torcheck?ip=' + ip;
}
if (!cuType && aTags[i].innerHTML.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/)) {
var ip = aTags.innerHTML;
aTags[i].innerHTML += '</a> - <a href="http://whatismyipaddress.com/ip/' + ip + '">Geolocate</a> · <a href="https://www.dan.me.uk/torcheck?ip=' + ip + '">Tor check';
}
}
}
addOnloadHook(addLocator);