User:Xhantar/monobook.js

// extraeditbuttons.js from User:MarkS/extraeditbuttons.js // document.write('');

// View Source from User:Misza13/Scripts/View_source // addOnloadHook(function {  if (location.href.indexOf('viewsource=1') != -1) {    sl = document.getElementById('wpSummaryLabel'); sl.parentNode.removeChild(sl);    ed = document.getElementById('wpSummary').parentNode; ed.parentNode.removeChild(ed);    return;  }  editbutton = document.getElementById('ca-edit');  if (editbutton && location.href.indexOf('action=edit')==-1) {    editlink = editbutton.getElementsByTagName('a')[0].href + '&viewsource=1';    tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];    na = document.createElement('a');    na.href = editlink; na.appendChild(document.createTextNode('view source'));    li = document.createElement('li'); li.id = 'ca-viewsource'; li.appendChild(na);    tabs.insertBefore(li,editbutton);  } });

// Navigation Popups from Tools/Navigation popups // User:Lupin/popups.js // importScript('User:Lupin/popups.js');

// Additional customization for nav popups, from WP:POP:

// If this variable is set to true then you can automatically remove links to // non-existent pages (so-called "red links") by selecting "Remove this link". popupRedlinkRemoval=true;

// If this variable is set to true then you can automatically "fix" links to // disambiguation pages by clicking one of the links at the very bottom of the popup. popupFixDabs=true;

// If true, then popups are only generated for links in the article. Otherwise, many // other links (such as Edit, Help) get popups too. popupOnlyArticleLinks=false;

// The name of an element by which the popup can be dragged without holding the shift // key. If false, then the popup can be dragged using the shift key instead. popupDragHandle='popupTopLinks';

// If true, you will be given the chance to change the default revert summary with // each reversion. popupRevertSummaryPrompt=true;

// If true, previews are restricted to the first paragraph of the article. popupPreviewFirstParOnly=false;

// The maximum number of sentences to extract from something approximating the beginning // of an article for the preview. (default=4) popupMaxPreviewSentences=4;

// The maximum number of characters to extract from something approximating the beginning // of an article for the preview. (default=600) popupMaxPreviewCharacters=600;

// //Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// // From User:Thebainer/monobook.js // Adds a 'Logs' link to the toolbox on the left-hand side of the page // If the page is a user's page, talk page or subpage, the link will go to logs for the user instead // If the page is a special page, then no link is displayed addOnloadHook(function {   // if this is a user, show the logs for the user rather than the page   if ( mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk" ) {      url = mw.config.get('wgServer') + "/w/index.php?title=Special:Log&user=" + mw.config.get('wgTitle').split("/")[0];  } else if ( mw.config.get('wgCanonicalNamespace') == "Special" ) {      // don't display link for special pages      return;   } else {      url = mw.config.get('wgServer') + "/w/index.php?title=Special:Log&page=" + mw.config.get('wgPageName');   }   mw.util.addPortletLink("p-tb", url, "Logs", "pt-logs"); });

// // Install User:Cacycle/wikEd in-browser text editor document.write(' ');

// // godmode-lite, from http://sam.zoy.org/wikipedia/ document.write('<\/SCRIPT>');