PageSourceSearch

https://robotstart.info/pages/scripts/mms-customize.js

js robotstart.info collected 2026-10-01 10:25:11 UTC 1,386 bytes, 49 lines download raw bytes

1var MMSCallback = MMSCallback || {};
2(function ($) {
3  $(function () {
4    function updateMenuAvatar(member) {
5      const auth = MMSIndex.getInstance()._mmsAuth._mmsAuthService;
6
7      let name, src;
8      if (member) {
9        name = member.name;
10        src = auth.getAvatar(member);
11
12        if (src === 'https://front-api-gateway.account.media.iid.jp/asset/img/default/user.png') {
13          src = '/base/images/icon_avatar.svg';
14        }
15      } else {
16        name = '';
17        src = null;
18      }
19
20      console.log({'updateMenuAvatar': { name, src }});
21      $('.btn-header-member img').attr('src', src);
22      $('.member-avater-img img').attr('src', src);
23      $('.member-avater-name').text(name);
24    }
25
26    MMSCallback = (function () {
27      const onLogged = function () {
28        console.log('onLogged');
29        $('html').removeClass('mms-log-out').addClass('mms-log-in');
30
31        const auth = MMSIndex.getInstance()._mmsAuth._mmsAuthService;
32
33        auth.getMember().then(function (member) {
34          updateMenuAvatar(member.data);
35        });
36      };
37      const onLogout = function () {
38        console.log('onLogout');
39        $('html').removeClass('mms-log-in').addClass('mms-log-out');
40        updateMenuAvatar();
41      };
42
43      return {
44        onLogged,
45        onLogout,
46      };
47    })();
48  });
49})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.