User:Kangaroopower/ajaxPatrol.js

/* Ajax Patrol Script- by Kangaroopower * * Converts all Patrol links to ajax ones */ $(function {	$('.patrollink a').click(function (e) { e.preventDefault; $(this).html(''); $.get($(this).attr('href'), $(this).removeAttr('href').css('color', 'gray').text('Marked as patrolled')); }); });