User:PiRSquared17/ICE
Appearance
ICE is a userscript which is and was developed by πr2 (t • c).
It will include the following features:
- Simple regular expression replacement of text Done
- New readability tab Doing...
- Renaming of categories Doing... Done, but not tested.
Features to implement[change | change source]
- New readability tab Doing...
Installation[change | change source]
To install ICE, you should add the following to Special:MyPage/skin.js:
importScript('User:PiRSquared17/ICE.js'); // [[WP:ICE-JS]]
but before/after that you can add regular expressions which ICE will use when the "rep" tag is clicked. Example:
- [/(\s)(t|T)he [tT]he(\s)/g, "$1$2he$3"]
- means: A space character, followed by (the or The) and another (the or The), followed by space will be replaced with "(the starting space character)(T/t)he(ending space)"
You need to put it like them though:
- var ICEReps = [ [/(\s)(t|T)he [tT]he(\s)/g, "$1$2he$3"], (other regex), ... ]; // invalid JS. use var ICEReps = [ [/(\s)(t|T)he [tT]he(\s)/g, "$1$2he$3"] ];
importScript('User:PiRSquared17/ICE.js'); // [[WP:ICE-JS]] from before
var ICEReps = [ [/(\s)(t|T)he [tT]he(\s)/g, "$1$2he$3"] ]; // regex, strings pairs in an array