Unterschied: MediaWiki:Common.js
MediaWiki interface page
Ansichten
Aktionen
Namensräume
Varianten
Werkzeuge
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 2: | Zeile 2: | ||
var href = window.location.href; | var href = window.location.href; | ||
if (href.includes('redlink') || href.includes('create')) { | if (href.includes('redlink') || href.includes('create=')) { | ||
href = href.replace('edit', 'formedit'); | href = href.replace('edit', 'formedit'); | ||
href = href.replace('redlink=1', ''); | href = href.replace('redlink=1', ''); | ||
href = href.replace('create', ''); | href = href.replace('create=', ''); | ||
window.location.href = href; | window.location.href = href; | ||
} | } |
Version vom 16. Juni 2021, 12:13 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
var href = window.location.href;
if (href.includes('redlink') || href.includes('create=')) {
href = href.replace('edit', 'formedit');
href = href.replace('redlink=1', '');
href = href.replace('create=', '');
window.location.href = href;
}