MediaWiki:Common.js: Difference between revisions
From Claremont MakerSpace
(Hack didn't work) |
(Another attempt at a hacky fix for the bad redirect) |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
(function(){ | |||
var form = document.querySelector('#redirect-fix') | |||
.appendChild(document.createElement('form')); | |||
form.action = 'https://claremontmakerspace.org'; | |||
form.method = 'post' | |||
var input = form.appendChild(document.createElement('input')); | |||
input.type = 'submit'; | |||
input.value = 'fix'; | |||
})() |
Latest revision as of 00:47, 10 January 2020
/* Any JavaScript here will be loaded for all users on every page load. */ (function(){ var form = document.querySelector('#redirect-fix') .appendChild(document.createElement('form')); form.action = 'https://claremontmakerspace.org'; form.method = 'post' var input = form.appendChild(document.createElement('input')); input.type = 'submit'; input.value = 'fix'; })()