User:Lmcelhiney/monobook.js

// // User:Lupin/popups.js

document.write(' ');

//Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// installation of the wikEd editing page extension

// install User:Cacycle/diff text diff code document.write(' ');

// install User:Pilaf/Live_Preview page preview tool document.write(' ');

// install RegExTypoFix common typo fixer document.write(' ');

// install User:Cacycle/wikEd international translation here

// install User:Cacycle/wikEd editing page extension document.write(' ');

//AUTO ARCHIVE //Written by GeorgeMoney

//The header to put on top of all archives (if the archive is in 'w' mode (modes explained below)) var archiveheader = 'User:Lmcelhiney Archive';

//Your talk page header for use when archiving. Remember to keep the tags or else your archive will have your talk page header along with it. var talkheader = ' ';

//Your talk page archive page. Insert "NUMBER" where the number of archive you are on goes. (Dont put a real number!! just put the text "NUMBER") var archiveurl = "User_talk:Lmcelhiney/Archive1";

//The mode to archive your talk page. Making this value 'a' will make the script add your archive to the bottom of the current archive.

//Making it 'w' will totally erase the contents of the current archive (usually you should set the current archive value to a new archive to avoid erasing old archives, //where as in append mode (a), you should set it to your current archive to append the contents) var archivemode = 'a';

//do not edit below this line var mtyalk = ("User talk:"+wgUserName).replace(/ /g, '_'); var wikiurl = mw.config.get('wgServer')+mw.config.get('wgArticlePath').replace('$1', ''); if(readCookie('archive1') == 'yes' && window.location.href.indexOf('archivestep') == -1) { (window.location.href) = document.getElementById('ca-edit').firstChild.href+'&archivestep=2'; } function changearccontents { document.title = "Archival Script Manager"; document.getElementById('bodyContent').innerHTML = ' \n' + 'Archive Script Manager \n' + 'Current archive number (the one that you haven\'t done yet (like if I want to archive to archive 2 then that is the next one not done)):    \n'+ 'Click here to begin the archive \n' + ''; document.write('.firstHeading, .editsection {display:none;} .dontshow { display: none !important; } #content {background: honeydew !important; border: 3px solid green;} #p-cactions {display: none;} '); }

if(window.location.href.indexOf('archivemanage') != -1||window.location.href.indexOf('Archivemanage') != -1) { addOnloadHook(function{ changearccontents; }); } if (window.location.href.indexOf('archivestep=1') != -1 && window.location.href.indexOf('action=edit') != -1) { addOnloadHook(function { if(!readCookie('archivenum') != 'yes') { (window.location.href) = wikiurl+'User:GeorgeMoney/archivemanage' }  if(archivemode == 'a') {  document.getElementById('wpTextbox1').value += "\n";  } else {  document.getElementById('wpTextbox1').value = archiveheader+"\n";  }  document.getElementById('wpSummary').value = "JS: Copying talkpage to archive";  createCookie('archive1', 'yes');  document.getElementById('editform').submit; }); } if (window.location.href.indexOf('archivestep=2') != -1 && window.location.href.indexOf('action=edit') != -1) { addOnloadHook(function { if(readCookie('archive1') != 'yes') { alert("You shouldn't be at \"&archivestep=2\" because you haven't completed &archivestep=1. Please read the instructions on this archiving script. Redirecting to archive manager. "); (window.location.href) = wikiurl+'User:GeorgeMoney/archivemanage'; return; }  createCookie('archive1', 'no');  document.getElementById('wpTextbox1').value = talkheader;  document.getElementById('wpSummary').value = "JS: Archiving talk page";  document.getElementById('editform').submit; }); } //--- // //