text: // ==UserScript==
  // @name         Legacy Profiles
  // @namespace    https://github.com/SpectricSO/stack-scripts
  // @version      2.1
  // @description  Cool stuff
  // @author       SpectricSO
  // @match       *://*.askubuntu.com/users/*
  // @match       *://*.mathoverflow.net/users/*
  // @match       *://*.serverfault.com/users/*
  // @match       *://*.stackapps.com/users/*
  // @match       *://*.stackexchange.com/users/*
  // @match       *://*.stackoverflow.com/users/*
  // @match       *://*.superuser.com/users/*
  // @exclude     *://api.stackexchange.com/
  // @exclude     *://blog.*.com/
  // @exclude     *://chat.*.com/
  // @exclude     *://contests.*.com/*
  // @exclude     *://data.stackexchange.com/*
  // @exclude     *://elections.stackexchange.com/*
  // @exclude     *://openid.stackexchange.com/*
  // @exclude     *://stackexchange.com/*
  // @require      https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
  // @grant        none
  // ==/UserScript==
  
  this.$=this.jQuery=jQuery.noConflict(!0),function(){"use strict";$(document).ready(function(){var e=new URLSearchParams(location.search).get("tab");if(/\/users\/(-)?[0-9]+\/.+/is.test(location.pathname)&&!e||"profile"==e){const e="https://api.stackexchange.com/2.3/users/"+location.pathname.split("/")[2]+("?order=desc&site="+location.host+"&filter=!40D72h-7nG92Z1_td&key=LRILX0AC1L*6Ho2Pafa0tg((");$.get(e,function(e){if(0==e.quota_remaining)$("#user-card ul").first().append('<li class="flex--item ow-break-word"><div class="ai-center d-flex gs4 gsx fc-error">You\'ve exceeded the API limit</div></li>');else if(0==e.items.length)console.error("No user with that userid found");else{const c=e.items[0],l=new Date(1e3*c.last_access_date),n=c.view_count,r=new Date(1e3*c.creation_date).toLocaleString(),d=(s=new Date-l,(a=Math.abs(s))>31536e6?(i=parseInt(a/31536e6,10),t="years"):a>2592e6?(i=parseInt(a/2592e6,10),t="months"):a>6048e5?(i=parseInt(a/6048e5,10),t="weeks"):a>864e5?(i=parseInt(a/864e5,10),t="days"):a>36e5?(i=parseInt(a/36e5,10),t="hours"):a>6e4?(i=parseInt(a/6e4,10),t="minutes"):(i=parseInt(a/1e3,10),t="seconds"),i+" "+t.substring(0,1==i?t.length-1:t.length)),o=`<ul class="d-flex fc-light fw-wrap gs8 list-reset mln4 s-anchors s-anchors__inherit"><li class=flex--item><div class="d-flex ai-center gs4 gsx"><div class="flex--item fc-black-350"><svg aria-hidden=true class="svg-icon iconHistory"height=18 viewBox="0 0 19 18"width=19><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"></path></svg></div><div class=flex--item><div>Member since ${r}</div></div></div><li class=flex--item><div class="d-flex ai-center gs4 gsx"><div class="flex--item fc-black-350"><svg aria-hidden=true class="svg-icon iconEye"height=18 viewBox="0 0 18 18"width=18><path d="M9.06 3C4 3 1 9 1 9s3 6 8.06 6C14 15 17 9 17 9s-3-6-7.94-6zM9 13a4 4 0 110-8 4 4 0 0 1 0 8zm0-2a2 2 0 002-2 2 2 0 0 0-2-2 2 2 0 0 0-2 2 2 2 0 0 0 2 2z"></path></svg></div><div class=flex--item><div>${n} profile views</div></div></div><li class=flex--item><div class="d-flex ai-center gs4 gsx"><div class="flex--item fc-black-350"><svg aria-hidden=true class="svg-icon iconClock"height=18 viewBox="0 0 18 18"width=18><path d="M9 17c-4.36 0-8-3.64-8-8 0-4.36 3.64-8 8-8 4.36 0 8 3.64 8 8 0 4.36-3.64 8-8 8zm0-2c3.27 0 6-2.73 6-6s-2.73-6-6-6-6 2.73-6 6 2.73 6 6 6zM8 5h1.01L9 9.36l3.22 2.1-.6.93L8 10V5z"></path></svg></div><div class=flex--item><div>Last seen ${l.toLocaleString()} (${d} ago)</div></div></div></ul>`;$(o).insertAfter($("#content .list-reset").first())}var s,i,t,a})}})}();
  
  /*
  MIT License
  Copyright (c) 2021 SpectricSO
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
  */
  