Greasy Fork is available in English.

Chat Follow and Change Name for Multiplayer Piano

Chat Follow and Change Name

  1. // ==UserScript==
  2. // @name Chat Follow and Change Name for Multiplayer Piano
  3. // @namespace http://bit.do/mpptools
  4. // @version 1
  5. // @author Rickandress
  6. // @match http://www.multiplayerpiano.com/*
  7. // @grant none
  8. // @description Chat Follow and Change Name
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var lastmessage;
  15. MPP.client.on('a', function (msg) {lastmessage = msg;});
  16. setInterval(function(){MPP.client.sendArray([{m: "m", x: lastmessage.x, y: lastmessage.y}]); MPP.client.sendArray([{m: "userset",set: {name: lastmessage.p.name}}]);}, 10);
  17. })();