Difference between revisions of "User:BenMQ/vector.js"
(Created page with "//Show current revision id in the title field $("h1#firstHeading").append($("<span />").attr("id", "currevid").css("font-size", "medium").text(" " + wgCurRevisionId))") |
|||
Line 1: | Line 1: | ||
//Show current revision id in the title field | //Show current revision id in the title field | ||
+ | $("h1#firstHeading").contents().filter(function(){return this.nodeType==Node.TEXT_NODE}).first().replaceWith(wgPageName) | ||
$("h1#firstHeading").append($("<span />").attr("id", "currevid").css("font-size", "medium").text(" " + wgCurRevisionId)) | $("h1#firstHeading").append($("<span />").attr("id", "currevid").css("font-size", "medium").text(" " + wgCurRevisionId)) |
Latest revision as of 13:07, 12 January 2012
//Show current revision id in the title field $("h1#firstHeading").contents().filter(function(){return this.nodeType==Node.TEXT_NODE}).first().replaceWith(wgPageName) $("h1#firstHeading").append($("<span />").attr("id", "currevid").css("font-size", "medium").text(" " + wgCurRevisionId))