Common.js: Difference between revisions
From MiniPC.club
Philo3lancer (talk | contribs) Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { if (mw.config.get('wgPageName') === 'Special:FormEdit') { window.location = '/wiki/Special:FormEdit/Mini-PC/_'; } });" |
Philo3lancer (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
if (mw.config.get('wgPageName') === 'Special:FormEdit') { | if (mw.config.get('wgPageName') === 'Special:FormEdit') { | ||
window.location = ' | window.location = 'Special:FormEdit/Mini-PC/_'; | ||
} | } | ||
}); | }); |
Revision as of 15:05, 18 April 2025
/* Any JavaScript here will be loaded for all users on every page load. */ $(document).ready(function() { if (mw.config.get('wgPageName') === 'Special:FormEdit') { window.location = 'Special:FormEdit/Mini-PC/_'; } });