User:SeoR/monobook.js

importScript('User:DStoykov/defaultsort.js'); //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'); } popupFixDabs=true; popupFixRedirs=true; // This will add an [edit] link at the top of all pages except preview pages and the main page // by User:Pile0nades // Add an [edit] link to pages addOnloadHook(function {  // if this is preview page or generated page, stop  if( document.getElementById("wikiPreview") || document.getElementById("histlegend‎") || document.getElementById("difference‎") || document.getElementById("watchdetails") || document.getElementById("ca-viewsource") || window.location.href.indexOf("/wiki/Special:") != -1 ) {   if(window.location.href.indexOf("&action=edit&section=0") != -1) {      document.getElementById("wpSummary").value = "/* Intro */ ";    }    return;  };  // get the page title  var pageTitle = mw.config.get('wgPageName');  // create div and set innerHTML to link  var divContainer = document.createElement("div");  divContainer.innerHTML = ' [edit intro] ';  // insert divContainer into the DOM below the h1  if(window.location.href.indexOf("&action=edit") == -1) {    document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);  } }); // From Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs // addPurge addOnloadHook(function {    var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', 'p'); }); // // Script from Wikipedia:WikiProject User scripts/Scripts/Show last diff // Originally based on http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510 //See WikiProject User scripts/Scripts/Show last diff // addLastDiff // function addLastDiff //{ //   mw.util.addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=' + mw.config.get('wgPageName') + "&diff=cur&oldid=prev", 'last', 'ca-last', 'Show most recent diff'); //} //addOnloadHook(addLastDiff); // add Script from WikiProject User scripts/Scripts/Replace function wpTextboxReplace {   var s = prompt("Search regexp:"); if(s){ var r = prompt("Replace /"+s+"/ with:"); if(!r && r != '') return; var txt = document.editform.wpTextbox1; txt.value = txt.value.replace(new RegExp(s, "mg"), r); } } addOnloadHook(function {    if (document.forms.editform) {        mw.util.addPortletLink('p-cactions', 'javascript:wpTextboxReplace', 'replace', 'ca-replace', 'Regexp replace for the edit window', 'R', document.getElementById('ca-history'));   } }); // script from Wikipedia:WikiProject User scripts/Scripts/Unreferenced tool // If you are editing a page, click the unref button on your tab bar to add "" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit. function doQunref { document.editform.wpTextbox1.value = '{' + '{' + 'Unreferenced|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "Marked as unreferenced (see Verifiability, No original research and WP:RS). Please don't remove the tag until references have been added."; document.editform.wpMinoredit.checked = true; document.editform.submit; } addOnloadHook(function { if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQunref", "unref", "ca-unref", "Mark as unreferenced", "");  } }); // by jj137 // // Script from User:Lupin/editcount.js importScript('User:Lupin/editcount.js'); //User:Lupin/editcount.js popupEditCounterTool='custom'; popupEditCounterUrl='http://en.wikipedia.org/wiki/User:$1?ectarget=$1'; // User:BrownHairedGirl/metadata.js - displays WikiProject assessments // User:Outriggr/metadatatest.js importScript('User:BrownHairedGirl/metadatatest.js'); assessmentMyTemplateCode = ["", "", "",]; assessmentDefaultProject = "WikiProject Ireland"; assessmentMarkAsMinor = true; // importScript('User:BrownHairedGirl/Unref.js'); importScript('User:BrownHairedGirl/PrimarySources.js');

importScript('User:Galobtter/Shortdesc helper.js'); // shows short description and provides edit window with button to import from Wikidata window.inputBoxSize = "150"; // edit window size

importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool importScript('User:Dr pda/prosesize.js');