User:WooperIsBest/common.js/archive3.js

/** * QuickRestore * * Adds a button to history pages that allows you to quickly restore a revision. * Useful for undoing vandalism from multiple users. * * Author: WooperIsBest */ /*   'use strict'; var page = window.location; if(page.toString.includes("?action=history") || page.toString.includes("&action=history")){ //history page loadButtons; //window.alert(buttons.length.toString); }   function loadButtons{ var buttons = document.getElementsByClassName('mw-changeslist-links'); $(' '+   		' ' +    			'' +     				'restore' +    			'' +    		' ' +    	' ').appendTo(buttons); } }(this, this.jQuery, this.mediaWiki));
 * (function (window, $, mw) {