Hello, you have come here looking for the meaning of the word
User:Erutuon/scripts/oldRevisionClass.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word
User:Erutuon/scripts/oldRevisionClass.js, but we will also tell you about its etymology, its characteristics and you will know how to say
User:Erutuon/scripts/oldRevisionClass.js in singular and plural. Everything you need to know about the word
User:Erutuon/scripts/oldRevisionClass.js you have here. The definition of the word
User:Erutuon/scripts/oldRevisionClass.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
User:Erutuon/scripts/oldRevisionClass.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
/* Adds a class to the body tag when we are viewing an old revision.
Created after discussion at
].
*/
var latestRevision = mw.config.values.wgCurRevisionId;
var viewedRevision = mw.config.values.wgRevisionId;
var namespaceNumber = mw.config.values.wgNamespaceNumber;
if ( namespaceNumber > -1 && latestRevision !== viewedRevision )
$("body").addClass("old-revision");