Misplaced Pages

User:Suva/monobook.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Suva Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 22:45, 16 September 2007 view sourceSuva (talk | contribs)1,238 edits Popups back← Previous edit Revision as of 13:06, 21 September 2007 view source Suva (talk | contribs)1,238 editsm Removed some links from my watchlistNext edit →
Line 18: Line 18:
if(estaj.readyState != 4) return; if(estaj.readyState != 4) return;
sPage = estaj.responseText; sPage = estaj.responseText;
document.getElementById("contentSub").innerHTML = sPage.substring(sPage.indexOf("<h4>"), sPage.indexOf('<div class="printfooter">') - 25); document.getElementById("contentSub").innerHTML += sPage.substring(sPage.indexOf("<h4>"), sPage.indexOf('<div class="printfooter">') - 25);
}; };
estaj.send(null); estaj.send(null);

Revision as of 13:06, 21 September 2007

importScript('User:Lupin/popups.js');
importScript('User:Digwuren/tagwpe.js');
importScript('User:AzaToth/twinkle.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklediff.js');

addOnloadHook(estRelated);
 
function estRelated() {
  if (document.URL.indexOf('Special:Watchlist') == -1) return;
  estaj=sajax_init_object(null);
  estaj.open("GET", "http://en.wikipedia.org/search/?title=Special:Recentchangeslinked&target=Misplaced Pages: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);
}