51

Preview

Note: The date is locale-based. Screenshot is in UTC

What is LegacyProfiles? (install, unminified)

LegacyProfiles brings back user info removed from profiles in a recent profile update. It is powered by StackExchange API and inspired by this post.

Specifically, it allows you to see the user creation date, profile view count and when the user was last seen.

Browser Support

IE Chrome Firefox Safari Edge Opera
✔️ 6+ ✔️ ✔️ ✔️ 5.1+ ✔️ 12.1+ ✔️ 11.5+

Additional Information

License

Suggestions/Issues

MIT License Suggestions and issues should be raised as an answer in this post

Changelog

  • v2.2
  • v2.1
    • Added support for Stack Exchange sites in a different language (bug report)
  • v2.0
  • v1.8
    • Updated human readable format engine (implemented in v1.3) to use singular when appropriate
  • v1.7
    • Fixed over-aggressive regex implemented in v1.5
  • v1.6
    • Fixed Greasemonkey bug (as reported here and here)
  • v1.5
    • Better API quota conservation, only fetches user details when the current tab is the user's profile
  • v1.4
    • Revised selector
  • v1.3
    • Now displays how long ago the user was last seen in human readable format (e.g., "5 hours ago")
  • v1.2
    • Added API key, up request limit from 300 to 10000
  • v1.1
    • Icon color fixup

Languages/libraries used:

21
  • Also couldn't get it to work in Greasemonkey. Works in Tampermonkey. FF 90.0.2, Ubuntu 20.04 Commented Aug 8, 2021 at 16:21
  • @HolyBlackCat and DocBrown: Thanks for the report, the Greasemonkey issue has been patched in v1.6
    – Spectric
    Commented Aug 11, 2021 at 2:49
  • 11
    BTW: All of the major userscript manager will automatically check for updates, if the URL from which the userscript is installed returns a script with a higher version. The "normal" expectation is that you just create a single file within your GitHub repository which is the userscript. New versions are just additional commits on that repository which update that single file, with all prior versions available in the commit history. In other words, having separate files/directories for "v1.4", "v1.5", "v1.6", etc. is detrimental, preventing the userscript manager from doing automatic updates.
    – Makyen
    Commented Aug 11, 2021 at 3:09
  • Is it intentional that the "Member since" is put into the profile? It seems to have been put back by Stack using "Member for" with the exact time in a tooltip. Commented Sep 6, 2021 at 10:08
  • Tampermonkey issues some warnings about undefined globals and about unexpected assignments and sequences in a return statement. Adding /* globals jQuery, $ */ and /* eslint-disable no-return-assign, no-sequences */ helps to suppress these warning.
    – Martin R
    Commented Nov 5, 2021 at 9:05
  • Thanks for this. I'm wondering if it's possible to swap the positions of month and day in the Member for/Last seen dates? [unfounded complaint from a UK user here :p] Commented Nov 17, 2021 at 8:40
  • @TheSimpliFire The format of the date is based on your browser's locale.
    – Spectric
    Commented Nov 25, 2021 at 4:27
  • 1
    @Spectric: Is there a reason that the extended in formation is displayed on a user's Profile page, but not on the Activity page?
    – Martin R
    Commented Dec 7, 2021 at 8:17
  • 1
    @MartinR the profile information list was originally only available on the Profile page. Only after the update was it also visible on the Activity page. I just haven't bothered to change it.
    – Spectric
    Commented Dec 7, 2021 at 15:15
  • 1
    This might interest you meta.stackexchange.com/q/372956/196432 (you probably have seen it already).
    – Martin R
    Commented Dec 16, 2021 at 14:20
  • @MartinR thanks for the notice! I'll make sure that my userscripts will continue functioning after the change. :) Thanks again.
    – Spectric
    Commented Dec 16, 2021 at 17:07
  • 1
    P.S. Git tags allows one to version specific commits via git tag v4.2 and then git push --tags. This way, one does not need to maintain multiple folders with different versions since the tags already do that (and with other benefits). Commented Jan 25, 2022 at 11:09
  • @Sambhav.K You can install the userscript via the instructions here: github.com/SpectricSO/stack-scripts/blob/main/how-to-install.md
    – Spectric
    Commented Jun 4, 2022 at 1:42
  • 2
    @OlegValteriswithUkraine No, Tampermonkey for Safari 12+ is literally not free; it's $1.99 on the macOS App Store. It surprised me too; it's free on all other platforms. I'd assume that fee is used largely to cover Apple's dev fee to list it on the store.
    – zcoop98
    Commented Jun 6, 2022 at 15:46
  • 1
    @zcoop98 ha! Interesting, wow
    – 0Valt
    Commented Jun 6, 2022 at 15:47

8 Answers 8

7

Here is what I see (but maybe I am not looking at the right place):

Baluc

After updating the script, creating a key, and a Ctrl + Shift + L (local storage) to enter said key:

Note: This step is no longer necessary since version 1.2+ includes an API key BalusC2

Well done!

3
  • 2
    @Spectric As mentioned in meta.stackexchange.com/questions/368285/…... this is no longer working.
    – VonC
    Commented Aug 31, 2021 at 18:29
  • 1
    @VonC yeah, the most recent update broke a hell of a lot of scripts :( It was sort of anticipated, but still...
    – 0Valt
    Commented Aug 31, 2021 at 18:56
  • 1
    @VonC Fixed in v2.0
    – Spectric
    Commented Sep 2, 2021 at 16:51
7

I like the idea, but I would prefer for it to be on the second column on my profile, like this:

one

Which IMHO looks much nicer than the current version:

two

Looking at the source of your script, this can be achieved changing this specific selector from this:

$('#user-card ul:not(.s-prose ul)').first().append(HTML);

To this:

$('#user-card ul:not(.s-prose ul):eq(-1)').append(HTML);

The -1 here instead of 1 is because on profiles different than your own there is no second column, so -1 just selects the last column regardless.

0
6

The last seen field has been restored recently with a reduced granularity. As a consequence, two “Last seen” fields are presented if LegacyProfiles is active:

enter image description here

My suggestion is to replace the standard field instead, if that is possible.

2
  • 3
    I actually considered implementing this when the profiles were just updated, but I wasn't sure whether the users would like it. Looks like a good idea; I'll implement it in 2.2
    – Spectric
    Commented Nov 3, 2021 at 13:55
  • 1
    @Spectric: There is a typo in the script: “profile viewss”
    – Martin R
    Commented Nov 15, 2021 at 14:51
5

Unfortunately, it doesn't work for me (I use Windows 10). I downloaded "Unminified", Version 1.3, then I opened the windows file explorer and double clicked on the file (6 KB). Then I get asked if I want to open the file, I say "yes" and then it says "microsoft jscript error 800A03EA". Is the tool supposed to be used differently? Are any instructions available?

1
  • 9
    Install a userscript manager in your browser (Greasemonkey for Firefox, Tampermonkey for other browsers), then click one of the install links. You will automatically be prompted to install the userscript.
    – Spectric
    Commented Aug 8, 2021 at 15:29
4

It would be great if this worked in Stack Overflow for Teams, for example in Charcoal and SOBiotics.

6
2

The script no longer works on Russian SO.

For example, try looking at this profile.

1
  • 5
    Thanks for the report. The bug has been patched in v2.1
    – Spectric
    Commented Sep 5, 2021 at 17:07
2

I am currently using your Legacy profiles but cannot utilise the search users' functionality when doing so. This error occurs only on Safari.

3
  • 1
    Which userscript manager are you using in Safari? I had problems with a free userscript manager and then purchased Tampermonkey, which works fine so far. (That is my personal experience, I am not affiliated with any of these software products.)
    – Martin R
    Commented Jun 11, 2022 at 18:05
  • Try and see if this works. Otherwise, it appears to be a problem with the userscript manager.
    – Spectric
    Commented Jun 11, 2022 at 20:51
  • Ok @Spectric will try it out in the evening and let u know Commented Jun 12, 2022 at 5:43
1

I can't delete any of my profiles with LegacyProfiles enabled.

  • I tried disabling all other scripts: this doesn't work.
  • I tried disabling the LegacyProfiles script: this does work.

When I have LegacyProfiles enabled, the button "Delete profile" is disabled even if checkbox is enabled:

the "Delete profile" button being disabled

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .