User:Hillgentleman/common.js

出自維基百科,自由嘅百科全書
注意:儲存之後,你可能要兜過你嘅瀏覽器快取至睇到更改。Internet Explorer: 撳住Ctrl掣再撳重新整理掣。 Firefox: 撳住Shift掣再撳重新載入(又或者撳Ctrl-Shift-R)。 Google Chrome同埋Safari用戶就噉撳個重載掣。
// [[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');
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hillgentleman/regex.js&action=raw&ctype=text/javascript');