User:Elric Coy/monobook.js

/**** Guild Wars Wiki Tools * (c) 2007 by Patrick Westerhoff [poke] */ var head = document.getElementsByTagName( 'head' )[0]; head.appendChild( document.createElement( 'script' ) ); head.lastChild.src = '/index.php?title=User:Poke/GuildWarsWikiTools.js&action=raw&ctype=text/javascript'; head.lastChild.type = 'text/javascript'; hookEvent( 'load', function {  if ( wgPageName !== 'Special:WantedPages' )     return false;   var removeNames = [ 'Guild' ];   var removeWords = [ 'Guild' ];   var i, li, lis, xpath, remove = new Array;   xpath  = '//div[@id="bodyContent"]//li[ ';   xpath += 'contains( a[4]/@title, "' + removeNames.join( '" ) or contains( a[4]/@title, "' ) + '" ) or ';   xpath += 'contains( a[1]/@title, "' + removeWords.join( '" ) or contains( a[1]/@title, "' ) + '" ) or ';   xpath += 'contains( span[@class="comment"], "' + removeWords.join( '" ) or contains( span[@class="comment"], "' ) + '" ) ]';   lis    = document.evaluate( xpath, document, null, 4, null );   while( ( li = lis.iterateNext ) )   {     remove.push( li );   }   while( ( li = remove.pop ) )   {     li.parentNode.removeChild( li );   } } );