Advertisement
Guest User

Untitled

a guest
Jan 5th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Check for the right page
  2. if (wgPageName == 'User:Cåm/Scrapbook_11' || wgPageName == 'User:Cåm/Discussions') {
  3.     // Generate a list of span ids on the page
  4.     var pageId = $('span').map(function() {
  5.         return parseInt(this.id)||undefined;
  6.     }).get();
  7.  
  8.     // Changes ids to dates
  9.     for (var i = 0; i < pageId.length; i++){
  10.         // Replaces the revision number within the id with the revision date
  11.         $('#' + pageId[i]).load('/index.php?oldid=' + pageId[i] + ' #mw-revision-date');
  12.     };
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement