rednaz / pr0gramm_admin

// ==UserScript==
// @name pr0gramm_admin
// @version 1
// @match *://pr0gramm.com/*
// @grant unsafeWindow
// @license MIT
// ==/UserScript==

unsafeWindow.p.user.admin = true;
const syncCallback_old = unsafeWindow.p.User.prototype.syncCallback;
unsafeWindow.p.User.prototype.syncCallback = function() {
  let result = syncCallback_old.apply(this, arguments);
  this.admin = true;
  return result;
};