User:Panamitsu/script/wikischedule
If you have a problem of editing Wikipedia instead of doing something more important (e.g., work, school), but you still need to read Wikipedia, this script will help you. It helps you create a Wikipedia schedule. When you are outside of this schedule, you are not able to edit, and will not see your notifications or other things that may tempt you to edit.
Installation
[edit]Warning! Be careful not to make a mistake, or you could lock your account permanently. In cases of errors, click this link to remove the script from your common.js using safemode, or ask an interface admin to do it for you. |
- Open your common.js in edit mode.
-
Add the following code to your common.js file. Don't save it just yet.
mw.loader.load('/w/index.php?title=User:Panamitsu/script/wikischedule.js&action=raw&ctype=text/javascript&startEditing=0001&endEditing=2359'); // [[User:Panamitsu/script/wikischedule.js]]
-
You enter 24 hour times with four digits (leave out the hour/minute seperator). For example, 1:30pm is written as 1330. It must be four digits, meaning that you might have to add a zero in front (for example, 9:30 am is 0930).
To set your times, decide on the time you want to start editing Wikipedia, and change the time in "startEditing=0001" to your chosen time, and do the same with endTime. For example, if you want to edit from 9:30am to 1pm, you would have "startEditing=0930&endEditing=1300".
This might be a bit confusing, so if you need help with installation, make sure to ask Panamitsu and he'll gladly help you!
Disclaimer: Use this script at your own risk. If you input the parameters incorrectly, there is a (small but not impossible) chance that your entire account will get locked permanently. In that case, ask an interface admin to remove the script from your JavaScript page for you, or use safemode to remove it yourself by clicking this link. This tool got into the village stocks during development.
Usage
[edit]Once you have installed the script, there is nothing that you will now need to do. If you try to edit Wikipedia outside of your chosen schedule, this script will prevent you from doing so. It will also hide notifications and other buttons to stop the temptation of editing when you're reading Wikipedia.