User:SigmaEpsilon/monobook.js

In this article we are going to analyze in depth User:SigmaEpsilon/monobook.js, a topic of great relevance and interest today. From its origins to its impact on today's society, User:SigmaEpsilon/monobook.js has generated debate and growing interest among experts and the general public. Throughout the next few lines we will explore the different aspects surrounding User:SigmaEpsilon/monobook.js, from its historical importance to its influence in different areas of daily life. Additionally, we will examine different perspectives and opinions about User:SigmaEpsilon/monobook.js, with the aim of offering a complete and objective view of this topic.
$( function (){
    var edit_tab = document.getElementById('ca-edit');
    var talk_tab = document.getElementById('ca-talk');
    var x = document.getElementById('ca-history');
    var cat_div = document.getElementById('mw-normal-catlinks');
    
    cat_div.innerHTML = cat_div.innerHTML.replace(/\|/g,'•');
    if (edit_tab) edit_tab.firstChild.innerHTML = 'edit';
    if (talk_tab) talk_tab.firstChild.innerHTML = 'talk';
    if(!x) return;
    if(x.children) x = x.children.href;
    else x = x.childNodes.href;
    mw.util.addPortletLink("p-cactions", x.replace(/=history/, "=purge"), 'purge', 'ca-purge', 'Purge the internal cache for this page', 0);
});


// install ] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var wikEdLoadRegExTypoFix = true;



//Please leave the following line
//]
 
$(function() {
   if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history
      return;
   }
   if (document.title.indexOf("User:") == 0 || document.title.indexOf("User talk:") == 0) {
      username_a = document.URL.match(/:.*:(.*)/);
      username=username_a;
      mw.util.addPortletLink('p-cactions',"http://en.wikipedia.orghttps://wikifreehand.com/en/Special:Contributions/" + username, "contrib", "ca-contrib", "Show this user's contributions", "");
      mw.util.addPortletLink('p-cactions',"http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=" + username + "&site=en.wikipedia.org", "edit count", "ca-kate", "Show edit count for this user", "");
   }
});



// From ], revision 67477415

//From http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510

// addLastDiff
$(function () {
    if (!/wiki\/Special:|w\/index.php?title=Special:/.test(window.location.href)) {
z=document.getElementById("content").childNodes;
for (var n=0;n<z.length;n++) { 
  if (z.className=="firstHeading") {
var pname=z.textContent ? z.textContent : z.innerText;
  }
}
mw.util.addPortletLink('p-cactions',"http://en.wikipedia.org/w/index.php?title=" + pname + "&diff=cur&oldid=prev", 'last', 'ca-last',"Show most recent diff");
}
});



// From ], revision 60911506


//From http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510
function addSinceTab() {
    if (window.location.href.indexOf("&action=history&gotosince=true")!=-1) {
       do_since_I_last_edited()
    }
    else if (!/wiki\/Special:|w\/index.php?title=Special:/.test(window.location.href)) {
       var thetitle=document.title.slice(0, String(document.title).indexOf(" - "));
       mw.util.addPortletLink('p-cactions',"/w/index.php?title="+thetitle+"&action=history&gotosince=true", "since", "ca-since", "Changes since I last edited", "");
    }
}
function do_since_I_last_edited() {
        var csub=document.getElementById("contentSub");
        var msg=document.createElement("p");
        msg.appendChild(document.createTextNode
                        ("Parsing history... please wait..."));
        msg.className="error";
        csub.insertBefore(msg, csub.firstChild)

        var username=document.getElementById("pt-userpage").textContent;
        var hists=document.getElementById("pagehistory").getElementsByTagName('li');
        for (n=0;n<hists.length;n++) {
            if (hists.getElementsByTagName("span").getElementsByTagName('a').textContent==username) {
                document.location=hists.childNodes.href; 
                return;
            }
        }

        msg.replaceChild(document.createTextNode
                         ("You have not edited this page! (recently)"),
                         msg.firstChild);
}

$(addSinceTab);



// From ], revision 87854342

// This will add an  link at the top of all pages except preview pages and the main page
// by User:Pile0nades


// Add an  link to pages
$(function () {
// if this is preview page or generated page, stop
  if (window.location.href.indexOf("https://wikifreehand.com/en/Special:") != -1) return;


  if(document.getElementById("wikiPreview")) return;

  // if this is a revision history, stop
  if(document.getElementById("histlegend ")) return;

  // if this is a diff page, stop
  if(document.getElementById("difference ")) return;

  // if this is a watchlist, stop
  if(document.getElementById("watchdetails")) return;

  // if this is the main page, stop
  if(document.getElementById("mainpage")) return;

  // get the page title
  var pageTitle = document.title.split(" - ").replace(" ", "_");

  // create div and set innerHTML to link
  var divContainer = document.createElement("div");
  divContainer.innerHTML = '<div class="editsection" style="float:right;margin-left:5px;margin-right:0px;margin-top:47px;">+'">edit</a>]</div>';

  // insert divContainer into the DOM below the h1
  if(window.location.href.indexOf("&action=edit") == -1)
    document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1"));

  if(window.location.href.indexOf("&action=edit&section=0") != -1)
  {
document.getElementById('wpSummary').value = "/* Intro */ ";
  }
});



// Import ]

document.write('<script type="text/javascript" src="http://en.wikipedia.org/w' + 
               '/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript"></script>'); 
  popupFixDabs = true;
  imagePopupsForImages = false;

// jncsp-end