Grab the username of the logged user from #hellomember, get the username of the profile you are on and compare them.
That's what I don't want to do unless absolutely necessary... snooping who the user is. I know it's silly since that info would never leave the 3-line code block where it would be used but still.
Btw, I'm not sure if you saw my last PM but I pushed the commit with the ninjastic.space links to the repo. Feel free to change anything if you don't like their locations.
Yes, sorry, I do have some comments on that but first I'll finish with the bugfixes here, merge the update with your code, and send you a reply.
Speaking of bugfixes, an update (version 2.1.2) is available for Firefox here:
https://bpip.org/test-extension.htmlChrome version as usual may take a few days to get approved.
This includes the following fixes:
- Corrected the link to user profiles on loyce.club.
- Added quote tags to trust rating quotes.
- Removed "bpipext-incexc" from the URL on the trust settings page so that when you refresh the page it doesn't try to include/exclude the person again, which would likely result in an incorrect message that the entry already exists. There is still some weirdness that is beyond my control - for example the browser may reinsert the same entry when you refresh the page (at least Firefox does) but that applies even if you enter something manually. However since the changes don't take effect until you press "Update" and the entry added by the extension is always at the top I think there is no risk of something being added inadvertently.
- Fixed the merit stats table so that it works on the page that you get after sending merit.
- Fixed the merit stats table to handle date format issues reported a few posts back. It should work with forum-provided date formats but if you use a custom format it may fail.