Extra info via browser extension?


(Allen - Watchman Monitoring) #1

Continuing the discussion from Why are email addresses hidden behind a "show" button in admin?:

Hi, tell me more about this?


(Mittineague) #2

I used the MDN Add-on SDK

In “main.js” I go to the “content” script, get the member’s name, and pass it back to main, In main I use the member_name to make a “request” (aka AJAX) to the member’s profile JSON
Then I get ["user"]["website"] and ["user"]["bio_raw"] and pass it to the “content” script.
The content script finds the table, and appends a column containing the data.

It can get fairly involved JavaScript-wise, but the documentation and tutorials are pretty good.