Skip to content

Instantly share code, notes, and snippets.

@Hri7566
Last active January 16, 2022 16:13
Show Gist options
  • Select an option

  • Save Hri7566/a3a38d444fe40cd822e9b8efad12039f to your computer and use it in GitHub Desktop.

Select an option

Save Hri7566/a3a38d444fe40cd822e9b8efad12039f to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Custom Notifications
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author Hri7566
// @match https://multiplayerpiano.com/*
// @match https://mppclone.com/*
// @match https://www.multiplayerpiano.org/*
// @icon https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://mppclone.com&size=128
// @grant none
// ==/UserScript==
MPP.client.sendArray([{
m:"+custom"
}]);
MPP.client.on('custom', msg => {
let m = msg.data;
if (!m.m) return;
if (m.m !== 'notification') return;
new MPP.Notification(m);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment