Jump to content

User:Cheng/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*
 * Custom scripts for the Monobook skin.
 * Changes will be visible only to your own account.
 * This page can be found at [Special:Mypage/monobook.js].
 * Refer to [Help:User_style] for more information.
 *
 * Last modified on June 2, 2010.
 */



// Mark all edits minor by default.
// Code by [User:WOSlinker].
// For details, see [Wikipedia:Village_pump_(technical)/Archive_78#Preference_to_mark_all_edits_minor_by_default_asked_to_be_removed_in_bugzilla:24313].

if(wgAction == 'edit') {
    addOnloadHook(function minorEdit() {
       document.getElementById('wpMinoredit').checked = true;
    }
)}