Jump to content

User:Sander Säde/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.
$(estRelated);

function estRelated() {
  if (document.URL.indexOf('Special:Watchlist') == -1) return;
  estaj=sajax_init_object(null);
  estaj.open("GET", 
"http://wiki.riteme.site/w/index.php?title=Special:Recentchangeslinked&target=Wikipedia:WikiProject Estonia/publicwatchlist&hideminor=0&days=7&limit=100",
true);
  estaj.onreadystatechange = function()
  {
    if(estaj.readyState != 4) return;
    sPage = estaj.responseText; 
    var changelist = document.getElementsByClassName("mw-changeslist");
    console.log(changelist);
    changelist.innerHTML += "<br/>" + sPage.substring(sPage.indexOf("<h4>"), sPage.indexOf('<div class="printfooter">') - 25);   
  };
  estaj.send(null);
}
/*
$(bloomfieldRelated);
 
function bloomfieldRelated() {
  if (document.URL.indexOf('Special:Watchlist') == -1) return;
  bloomAjax=sajax_init_object(null);
  bloomAjax.open("GET", "http://wiki.riteme.site/w/index.php?title=Special:Recentchangeslinked&target=User:Renata3/bloom&hideminor=0&days=7&limit=50", true);
  bloomAjax.onreadystatechange = function()
  {
    if(bloomAjax.readyState != 4) return;
    sPage = bloomAjax.responseText; 
    document.getElementById("contentSub").innerHTML += "<br/>" + sPage.substring(sPage.indexOf("<h4>"), sPage.indexOf('<div class="printfooter">') - 25);   
  };
  bloomAjax.send(null);
}
*/

popupDelay=0.3;
popupHideDelay=0.1;
popupImages=false;



/* Enable cleanup tab if appropriate */

$(function() {
 addOnloadHook(shortenEdit);
});



/*
function shortenEdit() { 
   var tab = document.getElementById('ca-edit');
   if (tab == null) return;
   if ( typeof(tab) != 'undefined') { 
      var tab = document.getElementById('ca-edit').getElementsByTagName('a')[0];
      tab.replaceChild(document.createTextNode("edit"), tab.firstChild); 
  
      tab = document.getElementById('ca-talk').getElementsByTagName('a')[0];
      tab.replaceChild(document.createTextNode("talk"), tab.firstChild); 
  }

  var tab = document.getElementById('ca-history');
  if (tab == null) return;
  if ( typeof(tab) != 'undefined') { 
     var tab = document.getElementById('ca-history').getElementsByTagName('a')[0];
     tab.replaceChild(document.createTextNode("hist"), tab.firstChild); 
  }

  var tab = document.getElementById('ca-protect');
  if (tab == null) return;
  if ( typeof(tab) != 'undefined') { 
     var tab = document.getElementById('ca-protect').getElementsByTagName('a')[0];
     tab.replaceChild(document.createTextNode("prot"), tab.firstChild); 
  }

  var tab = document.getElementById('ca-delete');
  if (tab == null) return;
  if ( typeof(tab) != 'undefined') { 
     var tab = document.getElementById('ca-delete').getElementsByTagName('a')[0];
     tab.replaceChild(document.createTextNode("rm"), tab.firstChild); 
  }

  var tab = document.getElementById('ca-move');
  if (tab == null) return;
  if ( typeof(tab) != 'undefined') { 
     var tab = document.getElementById('ca-move').getElementsByTagName('a')[0];
     tab.replaceChild(document.createTextNode("mv"), tab.firstChild); 
  }

}
*/
importScript('User:Js/ajaxPreview.js');
//importScript('User:Sander Säde/editcount.js');
importScript('User:Gerbrant/edit/linksInDiff.js');
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
//importScript('User:Sander Säde/allest4test.js');
//importScript('User:Sander Säde/assess.js');
//importScript('User:Sander Säde/viewsource.js');
//importScript('User:Sander Säde/differ.js');