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