PageSourceSearch

https://breadmastergames.github.io/kongregateFunctions.js

js breadmastergames.github.io collected 2026-10-03 08:44:06 UTC 998 bytes, 35 lines download raw bytes

1window.kongregateFunctions = {
2    
3    getUsername: function () {
4        if (window.kongregate.services.isGuest()) {
5            return "";
6        } else {
7            return window.kongregate.services.getUsername();
8        }
9    },
10	getUserID: function () {
11
12    if (window.kongregate.services.isGuest()) {
13        return "";
14    } else {
15        return window.kongregate.services.getUserId();
16    }
17    },
18	getToken: function () {
19        if (window.kongregate.services.isGuest()) {
20            return "";
21        }
22        else {
23            return window.kongregate.services.getGameAuthToken();
24        }
25    },
26    showRegistration: function (dotNetInstance) {
27        window.dotNet = dotNetInstance;
28        window.kongregate.services.showRegistrationBox();
29        window.kongregate.services.addEventListener("login", window.kongregateFunctions.onKongregatePageLogin);
30    },
31    onKongregatePageLogin: function () {
32        window.dotNet.invokeMethodAsync('RefreshUI');
33    }
34    
35};

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.