User:Majr

Hey there! I am an administrator on the English Minecraft Wiki. I prefer to do maintenance tasks over actual article editing; I also enjoy writing templates and scripts, doing image related things and long walks on the beach.

If you have a repetitive task you don't feel like doing, I have a bot account (using the AutoWikiBrowser software) which I might be able to use to complete the task for you.

Contact
If you want to contact me, the more reliable way is to just leave a message on my talk page or e-mail by using the link in the sidebar.

Documentation tabs
Makes documentation pages act like their own namespace, adding "doc" and "doc talk" tabs to template, module and user css/js pages.  // User:Majr/docTabs.js if (    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 10, 11, 828, 829 ] ) > -1 ||    $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 2, 3 ] ) > -1 &&    mw.config.get( 'wgTitle' ).replace( /\/doc$/, '' ).search( /\.(js|css)$/ ) > -1 ) { importScript( 'User:Majr/docTabs.js' ); }

Editable rollback summary
Adds a button to rollback links, which will bring up an input box with the default rollback summary, so you can edit and expand on it.  // User:Majr/editableRollback.js importScript( 'User:Majr/editableRollback.js' );

Reference tooltips
Brings up a tooltip containing the related reference's text when hovered hover. This makes references much quicker and easier to use, instead of having to jump all over the page. I plan to add this script to the wiki by default at some point (want to test for a while, and add some settings), so only use this if you want it now.  // User:Majr/refTooltip.js importScript( 'User:Majr/refTooltip.js' );

Code block links
Makes external links and wikilinks (including interwiki) clickable in code blocks (anything with a class of mw-code).

By default this applies to anything that looks like a link, however this can be limited to only comments by adding  before the importScript line. This requires a syntax highlighting script to mark comments with a "comment" class; Prism.js works out of the box, other highlighters may require the link script to be edited to look for a different class.  // User:Majr/codeLinks.js importScript( 'User:Majr/codeLinks.js' );

Adding the following styling to your usercss will allow the links to retain their colouring (from syntax highlighters), and also add an underline to them so it's still obvious they're clickable.  .mw-code a:not(:hover) { color: inherit; text-decoration: underline; }

Input counter
Adds a character counter to input fields with a max length, showing how many more characters you can type. It allows you to type more characters than the limit and will display how many characters you've gone over. The script also adds the length of the selected predefined reason on the delete and protect pages to the amount of characters used, giving a true representation of how many characters are left.  // User:Majr/inputCounter.js importScript( 'User:Majr/inputCounter.js' );