User:Neutralman1024/vector.js

if(wgAction == 'edit') { addOnloadHook(function minorEdit {      addHandler(document.getElementById('wpMinoredit'), 'change', minorEdit_change);       if (document.cookie.indexOf("minorEdit=true")!=-1) {document.getElementById('wpMinoredit').checked = true };    } ) } function minorEdit_change { var e = new Date; e.setTime( e.getTime + (24*60*60*1000) ); // one day document.cookie = 'minorEdit='+document.getElementById('wpMinoredit').checked+';expires=' + e.toGMTString; }