User:Sillygirly97/common.js

// Add a class to the body element to enable or disable image visibility function toggleImages { document.body.classList.toggle('hide-images'); }

// Optionally, you can trigger the function in response to a user action, for example, a button click document.getElementById('toggle-images-button').addEventListener('click', toggleImages);