MediaWiki:Gadget-AutoPatrol.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
function autopatrol() {
function AutoPatrolLinks() {
        var $patrollinks = $('.patrollink a');
var $patrollinks = $('.patrollink a');
if ( $patrollinks.length > 0 ){
if ( $patrollinks.length > 0 ) {
        jQuery(".patrollink a").click();
$patrollinks.click( function(e) {
e.preventDefault();
jQuery(".patrollink a").click();
});
}
}
}
}
$(autopatrol);
$(AutoPatrolLinks);