User:OsamaK/monobook.js

// User:Lupin/popups.js popupFixDabs=true;

// User:Howcheng/quickimgdelete.js importScript('User:Howcheng/quickimgdelete.js'); qid_alwaysOpenNew = true; addOnloadHook( function dontWatchUsertalk { if(location.href.indexOf("&fakeaction") != -1 && mw.config.get('wgCanonicalNamespace') == "User_talk") { document.editform.wpWatchthis.checked = false; } });

// Script from User:MarkS/extraeditbuttons.js importScript('User:MarkS/extraeditbuttons.js');

//Adding tagging tabs addOnloadHook(function addingTabs{ if (mw.config.get('wgNamespaceNumber') == 6) { var temp = mw.config.get('wgTitle').toLowerCase.split("\.");  var imageFormat = temp[temp.length-1];  switch (imageFormat)  {  case "jpeg":  case "jpg":    mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&BadJPG=1&useskin=simple'", "{\{BadJPG}}", "");    break;  case "gif":    mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&BadGIF=1&useskin=simple'", "{\{BadGIF}}", "");    break;  }  if (imageFormat != "svg") mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&ShouldBeSVG=1&useskin=simple'", "{\{ShouldBeSVG}}", ""); mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&Ifr=1&useskin=simple'", "{\{Ifr}}", ""); mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&FUReduce=1&useskin=simple'", "{\{Reduce}}", ""); }

if (mw.config.get('wgCanonicalNamespace') == "User_talk") { mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&section=new&editsummary=1&useskin=simple'", "{\{Editsummary}}", ""); mw.util.addPortletLink("p-cactions", "javascript:document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + mw.config.get('wgPageName') + '&action=edit&section=new&uncommons=1&useskin=simple'", "{\{Uncommons}}", ""); } });

//Dupes tagger document.write('<\/script>');