User:VictoryBot/common.js

function sandboxAutoClear { var d = Date; if((d.getHours + 7) + ':' + d.getMinutes + ':' + d.getSeconds == "00:00:00") { var API = new mw.Api; API.post({           action:'edit',            title:'Project:Sandbox',            text:'',            summary:'Clearing sandbox',            token: mw.user.tokens.values.edittoken        }); } }

sandboxAutoClear;