44

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:

24
  • Also couldn't get it to work in Greasemonkey. Works in Tampermonkey. FF 90.0.2, Ubuntu 20.04 Aug 8, 2021 at 16:21
  • @HolyBlackCat and DocBrown: Thanks for the report, the Greasemonkey issue has been patched in v1.6
    – Spectric
    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
    Aug 11, 2021 at 3:09
  • 1
    @mklement0 Updated. Should work now.
    – Spectric
    Aug 31, 2021 at 23:15
  • 1
    The quick turnaround is much appreciated, @Spectric.
    – mklement0
    Sep 1, 2021 at 1:37
  • 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. 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
    Nov 5, 2021 at 9:05
  • @Makyen An auto-updating version is available.
    – Spectric
    Nov 6, 2021 at 0:47
  • 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] Nov 17, 2021 at 8:40
  • 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
    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
    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
    Dec 16, 2021 at 14:20
  • 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). Jan 25 at 11:09
  • 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
    Jun 6 at 15:46
  • 1
    @zcoop98 ha! Interesting, wow Jun 6 at 15:47

7 Answers 7

6

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!

8
  • 3
    @Spectric This is working now, thank you! See my edited answer.
    – VonC
    Aug 6, 2021 at 19:36
  • 4
    @VonC No problem. It's an honor to have you using my userscript :)
    – Spectric
    Aug 7, 2021 at 2:26
  • 2
    @Spectric As mentioned in meta.stackexchange.com/questions/368285/…... this is no longer working.
    – VonC
    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... Aug 31, 2021 at 18:56
  • 1
    @VonC Fixed in v2.0
    – Spectric
    Sep 2, 2021 at 16:51
  • 1
    @Spectric Thank you! I does work. Do you need any help regarding Makyen's comment?
    – VonC
    Sep 2, 2021 at 17:11
  • 1
    @VonC An auto updating version is now available :)
    – Spectric
    Sep 18, 2021 at 1:37
  • 2
    @Spectric Thank you so much. This is a better approach indeed.
    – VonC
    Sep 18, 2021 at 12:57
6

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
    Nov 3, 2021 at 13:55
  • 1
    @Spectric: There is a typo in the script: “profile viewss”
    – Martin R
    Nov 15, 2021 at 14:51
4

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
  • 7
    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
    Aug 8, 2021 at 15:29
3

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
  • 4
    Thanks for the report. The bug has been patched in v2.1
    – Spectric
    Sep 5, 2021 at 17:07
1

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
    Jun 11 at 18:05
  • Try and see if this works. Otherwise, it appears to be a problem with the userscript manager.
    – Spectric
    Jun 11 at 20:51
  • Ok @Spectric will try it out in the evening and let u know Jun 12 at 5:43

You must log in to answer this question.

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