Difere entre revisas de "MediaWiki:Common.js"
De Red Zambala
Zambala (discute | contribuis) No resoma de edita |
Zambala (discute | contribuis) No resoma de edita Eticeta: Reverted |
||
| Linia 1: | Linia 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. */ | ||
mw.loader.using('mediawiki.util', function () { | |||
if (mw.config.get('wgCanonicalSpecialPageName') === 'Preferences') { | |||
var css = ` | |||
.mw-htmlform-field-HTMLTextField { | |||
background: #fef6e0; | |||
} | |||
`; | |||
var style = document.createElement('style'); | |||
style.innerHTML = css; | |||
document.head.appendChild(style); | |||
} | |||
}); | |||
Revisa de 13:02, 18 maio 2025
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.using('mediawiki.util', function () {
if (mw.config.get('wgCanonicalSpecialPageName') === 'Preferences') {
var css = `
.mw-htmlform-field-HTMLTextField {
background: #fef6e0;
}
`;
var style = document.createElement('style');
style.innerHTML = css;
document.head.appendChild(style);
}
});