inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Apr 23, 2006 13:58:21 GMT -8
<script type="text/Javascript"> // Ignore Button in PMs by Chris // Do not redistribute without permission of the creator
var ignoreURL = "http://img127.imageshack.us/img127/5508/ignore4vx.gif"; // URL of the "ignore user" image.
// No need to edit var aAH = document.links; if(location.href.match(/action=pmview/i)){ for(a=0;a<aAH.length;a++){ if(aAH[a].href.match(/action=pmsend&(amp;)?to=(.+?)&/i)){ var user = RegExp.$2; var an = document.createElement("A"); an.href = "index.cgi?action=pmprefs&blocked="+user; an.appendChild(new Image()); an.firstChild.src = ignoreURL; an.firstChild.alt = "[Ignore]"; an.firstChild.border = 0; aAH[a].parentNode.appendChild(document.createTextNode(" ")); aAH[a].parentNode.appendChild(an); break; } } } else if(location.href.match(/pmprefs&blocked=(.+?)$/i)){ document.forms[0].blocked.value += "\n"+RegExp.$1; alert("The user "+RegExp.$1+" has been added to your ignore list. Please click the \"Save Preferences\" button to save this change."); } </script> Main Footer. Preview
|
|