# \[JS\] UserScript - Show Corporation / Alliance

**URL:** <https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139>\
**Category:** Third Party Developers\
**Tags:** forum-improvement\
**Created:** [June 21, 2017, 6:53pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139 "2017-06-21T18:53:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 6:53pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/1 "2017-06-21T18:53:20Z")

</div>

This is a tampermonkey/greasemonkey script, but can be used outside of it too.

In short:

- Adds corporation and alliance names to the popup if you click on a users portrait

Might update to include on users page but thats a little more messy and would probably affect performance.

Thanks @CCP_Avalon for updating the forums CSS to make this work more smoothly 🙂

Prerequisites:

- Tampermonkey / Greasemonkey  
[Chrome Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)  
[Firefox Tampermonkey](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/)  
[Firefox Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)

[Installation Link](https://raw.githubusercontent.com/Robbilie/tampermonkey-scripts/master/eveo-forums-assoc.user.js)

If you like this UserScript, please leave me a like! 🙂

Example preview:

 ![image](https://global.discourse-cdn.com/eveonline/original/2X/4/4bc8061a930a9bb3659b6b482f63fa8dfc2c1808.jpg)

---

<div class="post-metadata">

**Author:** ![Nana\_Skalski](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nana_skalski/32/489985_2.png) [@Nana\_Skalski](https://forums.eveonline.com/u/Nana_Skalski)\
**Post date:** [June 21, 2017, 7:05pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/2 "2017-06-21T19:05:53Z")

</div>

Noice.

It is easy to see now that they could have added it and with rectangular avatar that would be slightly lower in the image on the right it would be even better. Avatars are already rectangular, only in round cutout.

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 7:17pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/3 "2017-06-21T19:17:16Z")

</div>

its a bit complicated to get that info there and not 100% reliable nor performant (fast) if you check how many requests have to be made to achieve that (name to id, get sheet, get corp/alli, aka 4 requests in total just to get that)  
i suspect though that my code could bug on some user names but i havent found one yet so fingers crossed.

---

<div class="post-metadata">

**Author:** ![Dethmourne\_Silvermane](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dethmourne_silvermane/32/453423_2.png) [@Dethmourne\_Silvermane](https://forums.eveonline.com/u/Dethmourne_Silvermane)\
**Post date:** [June 21, 2017, 7:25pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/4 "2017-06-21T19:25:28Z")

</div>

Looks like it doesn’t work on Greasemonkey in Firefox, sadly.

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 7:35pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/5 "2017-06-21T19:35:40Z")

</div>

if you gimme debugging code ill fix it 🙂  
check what the console says (F12?)

---

<div class="post-metadata">

**Author:** ![Dethmourne\_Silvermane](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dethmourne_silvermane/32/453423_2.png) [@Dethmourne\_Silvermane](https://forums.eveonline.com/u/Dethmourne_Silvermane)\
**Post date:** [June 21, 2017, 7:47pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/6 "2017-06-21T19:47:43Z")

</div>

I tried but the console shows nothing ☹

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 8:05pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/7 "2017-06-21T20:05:49Z")

</div>

i updated it, can you try again? should work now 🙂

---

<div class="post-metadata">

**Author:** ![Dethmourne\_Silvermane](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dethmourne_silvermane/32/453423_2.png) [@Dethmourne\_Silvermane](https://forums.eveonline.com/u/Dethmourne_Silvermane)\
**Post date:** [June 21, 2017, 9:07pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/8 "2017-06-21T21:07:31Z")

</div>

It works.

Side note, uBlock Origin apparently breaks it, as the updated version “didn’t work” but I gave disabling uBlock a go and that sorted it.

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 9:13pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/9 "2017-06-21T21:13:07Z")

</div>

can you tell me which URL it blocks?  
i guess it has to do with affiliation, ill update the script once more to remove the word “affiliation”

---

<div class="post-metadata">

**Author:** ![Dethmourne\_Silvermane](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dethmourne_silvermane/32/453423_2.png) [@Dethmourne\_Silvermane](https://forums.eveonline.com/u/Dethmourne_Silvermane)\
**Post date:** [June 21, 2017, 9:22pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/10 "2017-06-21T21:22:06Z")

</div>

Ironically, the only thing it says it blocks is [googletagmanager.com](http://googletagmanager.com) - I tried using the logger and with the logger enabled your script works 😑

Edit:

And now it’s working without - is there an expected lag when you open a user card? It looks like the variables might take a couple seconds to populate or something, and if they’re not populated it doesn’t show?

I’m seeing ~2-3 seconds before corp/alliance populate.

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 9:25pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/11 "2017-06-21T21:25:15Z")

</div>

_slowclap_ 😃  
i removed the affiliation, maybe it helps 🙂

---

<div class="post-metadata">

**Author:** ![Dethmourne\_Silvermane](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dethmourne_silvermane/32/453423_2.png) [@Dethmourne\_Silvermane](https://forums.eveonline.com/u/Dethmourne_Silvermane)\
**Post date:** [June 21, 2017, 9:28pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/12 "2017-06-21T21:28:52Z")

</div>

…so with the affiliation removal, it’s down to 1s or less before corp/alliance show, which is plenty fast 🙂

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 21, 2017, 9:39pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/13 "2017-06-21T21:39:22Z")

</div>

would love to be able to drop one call (name to id conversion) but thats sadly a thing i cant drop atm bc of how discourse works here

---

<div class="post-metadata">

**Author:** ![Morrigan\_Laima](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/morrigan_laima/32/12340_2.png) [@Morrigan\_Laima](https://forums.eveonline.com/u/Morrigan_Laima)\
**Post date:** [June 23, 2017, 7:38pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/14 "2017-06-23T19:38:50Z")

</div>

@CCP_Falcon is this something that might be able to be added into another experimental theme?

---

<div class="post-metadata">

**Author:** ![Drizzd](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/drizzd/32/17704_2.png) [@Drizzd](https://forums.eveonline.com/u/Drizzd)\
**Post date:** [June 24, 2017, 1:54am UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/15 "2017-06-24T01:54:55Z")

</div>

nice idea - alas it doesnt work for me …

Waterfox 54 … (64 bit port of Mozilla Firefox) … greasemonkey fresh install … script saved … nothing changes  
Forum on “Wide(experimental)”

When I analyze if via F12 -\> network … I see no info of the script getting executed or whatever ☹

---

<div class="post-metadata">

**Author:** ![Morrigan\_Laima](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/morrigan_laima/32/12340_2.png) [@Morrigan\_Laima](https://forums.eveonline.com/u/Morrigan_Laima)\
**Post date:** [June 24, 2017, 2:26am UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/16 "2017-06-24T02:26:37Z")

</div>

works for me with TamperMonkey 4.3.5447 in Firefox 55.0b3 (buildid: 20170619071723).

---

<div class="post-metadata">

**Author:** ![Drizzd](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/drizzd/32/17704_2.png) [@Drizzd](https://forums.eveonline.com/u/Drizzd)\
**Post date:** [June 24, 2017, 9:50am UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/17 "2017-06-24T09:50:38Z")

</div>

I see no change … now using tampermonkey …

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 26, 2017, 5:27pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/18 "2017-06-26T17:27:36Z")

</div>

wasnt watching the forums for a few days, happy to debug the issue with you in waterfox, but in this case i cant just install windows and waterfox so maybe check the console for errors? 🙂

EDIT: Firefox is 64bit now since the last release btw 😉

---

<div class="post-metadata">

**Author:** ![Vincent\_Eneticum](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/vincent_eneticum/32/14527_2.png) [@Vincent\_Eneticum](https://forums.eveonline.com/u/Vincent_Eneticum)\
**Post date:** [June 26, 2017, 5:56pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/19 "2017-06-26T17:56:53Z")

</div>

I just added a new feature, the corporation / alliance names link to the respective EVE Gate Profiles and there is a “open external” icon next to the name (except for CCP/ISD for now where its below) to open the persons EVE Gate Profile.

---

<div class="post-metadata">

**Author:** ![Drizzd](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/drizzd/32/17704_2.png) [@Drizzd](https://forums.eveonline.com/u/Drizzd)\
**Post date:** [June 26, 2017, 6:25pm UTC](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139/20 "2017-06-26T18:25:40Z")

</div>

yea … run now in FF 55 b03 nightly … and the problem is solved … script now runs

as ISD Stall told in another thread - you can take those links to Eve gate out again … eve gate is outdated and will most likely close some day

[Next page](https://forums.eveonline.com/t/js-userscript-show-corporation-alliance/5139.md?page=2)
