User:ImperfectlyInformed/wikihistory.js

$(document).ready(function {	$('#wikihistory').click(function(e) { var username = $(this).find('.username').text; $.get('https://tools.wmflabs.org/contribgraph/edits/'+username) .then(function (data) {	 			console.log('data:', data);	 		}); }); });