All pastes #625951 Raw Edit

Anonymous

public javascript v1 · immutable
·published 2007-07-19 09:02 UTC
rendered paste body
  if(inReply && replyArea) {    document.getElementById('modesu').setAttribute("checked","");    replyNumber=parseInt(document.location.search.substring(3));    if((savedNumber.substr(0,1) == 'R' && savedNumber==('R'+replyNumber)) ||       (savedNumber.substr(0,1) == 'P' && savedNumber==('P'+replyNumber)) ){ // qquote 'post'      if(savedText.length) { // this should always have a length - more a sanity check        GM_setValue('savedText', '');        GM_setValue('savedNumber', 'C');        replyArea.value=savedText;// --- test        var div=document.createElement('DIV');        div.style.width='100%';        div.style.height='100%';        div.style.margin='0';        div.style.padding='0';        div.style.position='fixed';        div.style.zIndex='2000';        div.style.top='0';        div.style.left='0';        div.style.textAlign='center';        div=document.body.appendChild(div);        var inDiv=document.createElement('DIV');        inDiv.style.width='14em';        inDiv.style.margin='200px auto 0';        inDiv.style.backgroundColor='orange';        inDiv.style.border='ridge 3px gold';        inDiv.style.textAlign='center';        inDiv.style.fontSize='24pt';        inDiv.style.fontWeight='bold';        inDiv.style.fontFamily='verdana,helvetica,sans-serif';        inDiv.style.color='black';        inDiv.appendChild(document.createTextNode('Please Wait ...'));        inDiv=div.appendChild(inDiv);// --- test        if(savedNumber.substr(0,1) == 'P')          uWin.prevbutton.click();        else if(savedNumber.substr(0,1) == 'R')          uWin.postbutton.click();      }    }  }