User:לערי ריינהארט/common.js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/* BiDi support • function bidiSwitchSetup() */
mw.loader.load('https://de.wikipedia.org/w/index.php?title=user:GFHund/monobook.js&action=raw&ctype=text/javascript');
/* Example for [[Bugzilla:023427#c23]] */
if (wgArticleId)
{
var my_short_url = wgScript + "?curid=" + wgArticleId + "&redirect=no&action=purge#";
var my_short_name = "ArticleId:" + wgArticleId;
mw.util.addPortletLink('p-cactions',my_short_url,my_short_name);
};
// Live Preview customization,
// edit this to your own liking.
wpShowImages = true; // Enable downloading and displaying of images
// Include Live Preview...
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Pilaf/livepreview.js&action=raw&ctype=text/javascript');
// Now set everything up
window.onload = Main;
function Main()
{
LivePreviewInstall();
// You may include here other "extensions"
}
/* This is to keep track of who is using the Live Preview: [[User:Pilaf/livepreview.js]] */