User:Nyworea/monobook.js

/**** Guild Wars Wiki Tools * (c) 2007 by Patrick Westerhoff [poke] */ addScript( 'User:Poke/GuildWarsWikiTools.js' ); gwwtLoadAfter = function { if ( wgAction == 'rollback' && document.getElementById( 'rollback-success' ) != null ) {   window.location.href = wgServer + wgScript + '?title=' + wgPageName; return; } // Custom links var portNav = new PortletArea( 'p-navigation' ); portNav.addText( 'My Wiki Links' ); portNav.addItem( null, 'Deletes', '/wiki/Guild_Wars_Wiki:List_of_candidates_for_deletion' ); portNav.addItem( null, 'Inactive Guilds', '/wiki/Guild_Wars_Wiki:List_of_inactive_guilds' ); portNav.addItem( null, 'Projects', '/wiki/Guild_Wars_Wiki:Projects' ); portNav.addItem( null, 'Categories', '/wiki/Guild_Wars_Wiki:Categorical_index' ); portNav.addItem( null, 'Orphans', '/wiki/special:unusedfiles' ); portNav.addItem( null, 'New Guild Pages', 'http://wiki.guildwars.com/index.php?title=Special%3ANewPages&namespace=100&username=' ); clearRecentChanges; } function clearRecentChanges {  if ( wgPageName !== 'Special:RecentChanges' ) return false; var removeNames = [ 'Inspired', ]; var removeWords = [ 'Ursan', 'ursan', ]; 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 ); } }

var gwwtWatchlist = true;

/**** Sysop automaticPatrol * (c) 2008 by Patrick Westerhoff [poke] */ addScript( 'User:Poke/GuildWarsWikiTools/automaticPatrol.js' ); hookEvent( 'load', function { gwwtAutomaticPatrol( false ); } );