User:WurmWoode/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 + (30*24*60*60*1000) ); // 30 days document.cookie = 'minorEdit='+document.getElementById('wpMinoredit').checked+';expires=' + e.toGMTString; }