User:Sun8908/js/MobileRevert.js

/*

Modified from https://fr.wikipedia.org/wiki/Utilisateur:PAC2/chouette.js



mw.loader.using('mediawiki.util', function {	var mobile_revert = function($){		 var currentpage = 'https://en.m.wikipedia.org/wiki/' +  mw.config.get( 'wgPageName' ) ; 		 var revert = 'https://en.m.wikipedia.org/w/index.php?title=' + mw.config.get( 'wgRelevantPageName' ) + '&action=edit&undoafter=' + mw.config.get('wgRevisionId') + '&undo=' + mw.config.get('wgCurRevisionId') ;		 $("#mw-revision-nav").after(" View the latest version - Restore this version ") ; 	} ;	$(document).ready(mobile_revert) ; });