-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhideemotes.js
More file actions
25 lines (24 loc) · 849 Bytes
/
hideemotes.js
File metadata and controls
25 lines (24 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name Hide Emotes
// @namespace majsoul_script
// @include https://mahjongsoul.game.yo-star.com/
// @include https://game.mahjongsoul.com/
// @include https://majsoul.union-game.com/0/
// @version 1.0
// @author anon
// @description no fun allowed script that hides emotes
// ==/UserScript==
var waitemojimutemod = setInterval(function() {
try {
uiscript.UI_DesktopInfo.Inst._player_infos[1].headbtn
uiscript.UI_DesktopInfo.Inst._player_infos[1].headbtn.__proto__.reset = (function () {
var cacheF = uiscript.UI_DesktopInfo.Inst._player_infos[1].headbtn.__proto__.reset;
return function () {
cacheF.apply(this, arguments);
this.emj_banned = !0;
};
})();
clearInterval(waitemojimutemod);
}
catch(err) {}
}, 1000);