User:Technical 13/Scripts/WikiBreak.js

if(mw.config.get( 'wgTitle' ) !== mw.config.get( 'wgUserName' ) + '/common.js' && mw.config.get( 'wgAction' ) !== 'edit'){ $( 'div#content' ).css( 'display', 'none' ); var stillOnBreak = confirm( 'You are still on a WikiBreak because you need to get your school work done.' ); if(stillOnBreak === false){ stillOnBreak = confirm( 'Are you sure you are done with your break?' ); if(stillOnBreak === false){ setTimeout(function{location = 'https://en.wikipedia.org/w/index.php?title=User:' + mw.config.get( 'wgUserName' ).replace(' ', '_') + '/common.js&action=edit#editform'},1); } else { stillOnBreak = alert( 'Fine, but hurry up and get back to doing your school work!' ); $( 'div#content' ).css("display", ""); }	} else { alert( 'Reloading the page...' ); setTimeout(function{location = ''},1); } }