MediaWiki:Common.js: Difference between revisions
From Artifacts of Capitalism
Blanked the page Tags: Blanking Manual revert |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
// Replace the Chameleon search-box placeholder and button text | |||
$(function() { | |||
// input field | |||
var inp = document.querySelector('#searchInput, input[name="search"]'); | |||
if ( inp ) { | |||
inp.placeholder = 'Find an artifact…'; // your new placeholder | |||
} | |||
// submit button (magnifying-glass) | |||
var btn = document.querySelector('#searchButton, button[type="submit"].mw-searchButton'); | |||
if ( btn ) { | |||
btn.textContent = 'Go'; // your new label, if you like | |||
} | |||
}); | |||
Revision as of 00:36, 15 July 2025
// Replace the Chameleon search-box placeholder and button text
$(function() {
// input field
var inp = document.querySelector('#searchInput, input[name="search"]');
if ( inp ) {
inp.placeholder = 'Find an artifact…'; // your new placeholder
}
// submit button (magnifying-glass)
var btn = document.querySelector('#searchButton, button[type="submit"].mw-searchButton');
if ( btn ) {
btn.textContent = 'Go'; // your new label, if you like
}
});