Jump to content

User:Ilmari Karonen/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Ilmari_Karonen/deletereasonlisthack.js');
importScript('User:Ilmari_Karonen/deletionlog.js');
//importScript('User:Ilmari_Karonen/editsection0.js');
//importScript('User:Ilmari_Karonen/editbutton_user.js');
importScript('User:Ilmari Karonen/fixarxivlinks.js');
//importScript('User:Ilmari_Karonen/fixcopyrightedfreeuse.js');
importScript('User:Ilmari_Karonen/fixdontknow.js');
importScript('User:Ilmari_Karonen/fixsearchcheckboxes.js');
importScript('User:Ilmari_Karonen/fixuserjslinks.js');
importScript('User:Ilmari_Karonen/googlelink.js');
importScript('User:Ilmari_Karonen/ifdthumbnails.js');
importScript('User:Ilmari_Karonen/longeditsummary.js');
importScript('User:Ilmari_Karonen/modrollback-newwindow.js');
importScript('User:Ilmari_Karonen/nfurbacklink.js');  // testing...
importScript('User:Ilmari_Karonen/prefixindex.js');
importScript('User:Ilmari_Karonen/purge.js');
importScript('User:Ilmari_Karonen/rblcheck.js');
importScript('User:Ilmari_Karonen/replace.js');
importScript("User:Ilmari Karonen/rollbacksummary.js");
importScript('User:Ilmari_Karonen/searchnsmenu.js');
importScript('User:Ilmari_Karonen/sigdash.js');
//importScript('User:Ilmari_Karonen/unwatch.js');
importScript('User:Ilmari_Karonen/unwatchredlinks.js');
importScript('User:Ilmari_Karonen/userboxes.js');
importScript('User:Ilmari_Karonen/watchsince.js');
//importScript('User:Ilmari_Karonen/watchfilter.js');

//importScript('User:Cryptic/oldrevisiontodiffs.js');
//importScript('User:^demon/csd.js');

importScript("User:Js/watchlist.js");

if (typeof mwCustomEditButtons !== 'undefined') {
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png",
    "speedTip": "Inline program code",
    "tagOpen": "<code>",
    "tagClose": "<"+"/code>",
    "sampleText": "Some code here"};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_user.png",
    "speedTip": "User link",
    "tagOpen": "[\[User:",
    "tagClose": "|]]",
    "sampleText": "Example"};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_templatelink.png",
    "speedTip": "Template link",
    "tagOpen": "{\{[\[Template:",
    "tagClose": "|]]}}",
    "sampleText": "Example"};
  if (mw.config.get('wgCanonicalNamespace') == "User_talk" && !/\//.test(mw.config.get('wgPageName')))
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png",
      "speedTip": "User warning",
      "tagOpen": "{\{subst:uw-vand|",
      "tagClose": "|subst=subst:}}  —~~"+"~~",
      "sampleText": "x=y"};
};

window.charinsertCustom = {
  "Wiki markup": "<source.lang=\"\">+</source>",
  "Templates": " {\{rtd}}+{\{rb}} {\{deletion.discussion}} {\{subst:ifd.top\}}.+{\{subst:ifd_bottom}}"
};

$(function(){
    mw.util.addPortletLink ('p-interaction', mw.config.get('wgScript') + '?title=Special:NewPages&limit=500&hidebots=1&hidepatrolled=1',
                    'New pages','n-newpages', 'The list of recently created pages', null, document.getElementById('n-recentchanges') );
});