1.0.1 • Published 5 years ago

@charsy89/pmjs v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 years ago

pmjs

A small code snip used to send private messages on Multiplayer Piano; uses notes to do so.

Usage

sendPM(a,b); where a is another person's id (Not _id!!); where b is the message you want to send.
I can confirm the messages you send cannot be seen by others, and that in the event it is seen, it will be seen as gibberish. AES ftw!

How to run it

The simplest way (I know of) is to open DevTools (F12 in Chrome, Edge, and IE, CTRL+SHIFT+S in Firefox 65<, CTRL+SHIFT+I in Opera and Firefox 66>), go to the Console tab, paste in the below code, and hit Enter or Return.

var s = document.createElement('SCRIPT');
s.src = "https://charsy.xyz/pm.js";
document.body.appendChild(s);

This snip will inject the script into your MPP client, allowing others who have the script to send/receive messages to/from you.
A NodeJS version is planned.