User:QwerpQwertus/archiver.js

function qqgetrevid{ } function qqinitRev{ var page='User talk:' + wgUserName; window.open("http://en.wikipedia.org/w/?title=" + page + "&qqarchiver=blank", "wind"); var li=document.getElementById('t-permalink').innerHTML; li=li.replace("Permanent link", ""); alert(li); } function qqonload{ if(wgPageName="User:QwerpQwertus/archiver/init"){ qqinitRev; document.getElementById('qq-revlink').innerHTML='Old Revision Link'; document.getElementById('qq-difflink').innerHTML='Diff Link'; document.getElementById('firstHeading').innerHTML='Initiate archiver.js - Please choose a method.'; }	if(wgPageName=page && document.URL.indexOf('&qqarchiver=blank') != -1){ document.getElementById('wpTextbox1').innerHTML=''; document.getElementById('wpSummary').value='Archiving with Archiver.js'; document.getElementById('wpMinoredit').checked='checked'; document.getElementById('wpSave').click; window.close; }	addPortletLink ('p-personal', 'http://en.wikipedia.org/wiki/User:QwerpQwertus/archiver/init', 'Archive My Talk', 'pt-qq-archive', 'Archive your talk page and produce an old-revision or a diff link for access to it.'); document.getElementById('pt-qq-archive').onclick="qqinit"; }