User:SJP/monobook.js

importScript('User:AzaToth/morebits.js');

importScript('User:AzaToth/twinklefluff.js');

importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');

importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');

importScript('User:AzaToth/twinklewarn.js');

importScript('User:AzaToth/twinklearv.js');

importScript('User:AzaToth/twinklespeedy.js');

importScript('User:AzaToth/twinklediff.js');

importScript('User:AzaToth/twinkleprotect.js');

importScript('User:AzaToth/twinklewarn.js');

$(twinklewarnauto);

//originally from User:DerHexer/rollback.js

function twinklewarnauto() {

if ( ( wgNamespaceNumber == 3 ) && ( QueryString.exists( 'vanarticle' )) ) {

if ( !isIPAddress (wgTitle) ) {

document.getElementById("siteSub").firstChild.nodeValue = "- - - Keine automatische Warnung - Keine IP - - -";

return;

}

document.editform.wpMinoredit.checked=true;

if (document.getElementById( 'wpTextbox1' ).value == "" ) {

if ( QueryString.get( 'vanarticle' ).slice(0, 5) == "User:" ) {

if ( QueryString.get( 'type' ) == "vand" ) {

spam("3", "Warning" , 23 , 0);

} else if ( QueryString.get( 'type' ) == "norm" ) {

spam("2", "Caution" , 22 , 0);

} else {

spam("1", "General note" , 21, 0);

}

} else {

spam("1", "General note" , 1, 0);

}

} else {

var now = new Date();

var actual_time = now.getTime();

var splitted = document.forms["editform"].wpTextbox1.value.split("