User:Duskey/monaco.js

if ( wgNamespaceNumber === -1 && wgCanonicalSpecialPageName === "Specialpages" ) $("#bodyContent").prepend("Hello world!!!!!!!!!!");

// NOTE: enhanced recent changes not supported function fixBlogLinks { if (wgPageName == "Special:RecentChanges") $("#bodyContent ul.special li:contains('Blog comments')").each(function (i) { oldHTML = $(this).html; lnk = $(this).find("a:contains('hist')").attr("href"); if (typeof(lnk) != "undefined") { rawID = lnk.replace(/.*curid=(.*?)&.*/,"$1"); bLink = "/wiki/User_blog:" + lnk.replace(/.*User_blog_comment:(.*?\/.*?)\/.*/,"$1") + "?showall=1#comm-" + rawID; newHTML = oldHTML.replace(/Blog comments \((.*?)\)/,"Blog comments ($1)"); $(this).html(newHTML); } }); } function fbl { fixBlogLinks; $("#bodyContent").bind("ajaxPageLoad",fixBlogLinks); } addOnloadHook(fbl);