User:Emma/common.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
m (Emma moved page User:Matt/common.js to User:Emma/common.js without leaving a redirect: Automatically moved page while renaming the user "Matt" to "Emma") |
(Testing) |
||
Line 1: | Line 1: | ||
function autopatrol() { | |||
var $patrollinks = $('.patrollink a'); | |||
if ( $patrollinks.length > 0 ){ | |||
window.onload.click( function( e ) { | |||
e.preventDefault(); | |||
jQuery(".patrollink a").click(); | |||
}); | |||
}} | |||
$(autopatrol); |
Revision as of 12:46, March 19, 2017
function autopatrol() { var $patrollinks = $('.patrollink a'); if ( $patrollinks.length > 0 ){ window.onload.click( function( e ) { e.preventDefault(); jQuery(".patrollink a").click(); }); }} $(autopatrol);