User:Hillgentleman/monobook.js

From Strategic Planning

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// [[User:Lupin/popupsdev.js]] - please include this line
mw.loader.load('//zh-yue.wikipedia.org/w/index.php?title=Wikipedia:Popups/strings-draft.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popupsdev.js&action=raw&ctype=text/javascript');
popupAdminLinks=true;
popupQueriedRevertSummary= ' 用[[:en:WP:POPUP|POPUP]]反轉上次編輯,返去[[Special:Contributions/$3|$3]]響$2嘅$1號版本。';
popupExtendedRevertSummary = 'Revert auf Version %s von Benutzer %s, oldid %s benutzt [[:en:WP:POPUP|POPUP]]';
popupRevertSummary = 'revert auf revision %s benutzt [[:en:WP:POPUP|POPUP]]';
popupQueriedRevertToPreviousSummary = ' 用[[:en:WP:POPUP|POPUP]]反轉[[Special:Contributions/$3|$3]]響$2嘅$1號編輯,返去先前嘅版本。';

/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

//A script by [[:en:User:Gracenotes]] to allow longer edit summaries
$(function() {
	var sumBox;
	if (sumBox = document.getElementById('wpSummary'))
		sumBox.setAttribute("maxlength", "320");
});

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript
 * @update-token [[File:pathoschild/templatescript.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');