Jump to content

User:Iune/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.
importScript('User:TheDJ/Gadget-HotCat.js');
importScript('User:Cameltrader/Advisor.js');

$(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/EA&hideminor=0&days=1&limit=50", true);
  estaj.onreadystatechange = function()
  {
    if(estaj.readyState != 4) return;
    sPage = estaj.responseText; 
    document.getElementById("contentSub").innerHTML = sPage.substring(sPage.indexOf("<h4>"), sPage.indexOf('<div class="printfooter">') - 25);   
  };
  estaj.send(null);
}