User:Rutilant/ArchiveTool.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | Documentation for this user script can be added at User:Rutilant/ArchiveTool. |
var saved;
function addSpan(){
saved=bodyContent.innerHTML;
bodyContent.innerHTML=bodyContent.innerHTML+"<span id='archiveMessages' style='position:absolute;left:350px;top:40px;width:700px;height:400px;background-color:skyblue;border:2px solid blue;border-radius:3px'><center style='font-family:Courier;margin:0'>Archive Talk Messages</center><span style='position:relative;left:530px;font-size:9pt;border-left:solid black 2px'>A simple script by <a href='https://en.wikipedia.org/wiki/User:RainFall'>User:RainFall</a></span><br>Destination : <input id='archiveTo' value='/Archive 1'><Br><input type=radio id=archiveSelected name=archiveSetting disabled><label for=1>Archive Selected (<font color=red>Unavailable</font>)</label><BR><input type=radio id=archiveAll name=archiveSetting checked><label for=archiveAll><a style=float:right href='#' onclick='javascript:closeArchiver()'>Cancel</a><span class='ui-button-text' style='float:right' onclick='archiveTM()'>Archive</span>Archive all the following talk messages</label><fieldset style='width:668px;height:270px;overflow:auto'><span id='talkComments'></span></fieldset>";
}
function closeArchiver(){
bodyContent.innerHTML=saved;
$("#archiveMessages").fadeOut(200);
}
$(function() {
mw.util.addPortletLink("p-cactions", "javascript:addSpan()", "ArchiveAll");
});