[UserScript] Avatar Size & Sub-Category Adjustment

Exactly. I like the full avatar. :kissing_heart:

4 Likes

you guys for real?

1 Like

The default character avatars on forum without script changed from default 90 px to 45 px? :thinking:

I had to replace 90 with 45 for avatar script to work.

$(window).on("load resize scroll",function(e){
    var imagelist = Array.from(document.getElementsByTagName('img'));
    imagelist.forEach(function(element) {
        element.src = element.src.replace("/45/", "/240/");
1 Like

image
Can’t believe I’ve been using forums for almost a year without this. This script makes a nice QOL adjustment to forum viewing.
Thank you @Erika_Mizune (if you are still in EvE…well…thanks regardless)

All this time later…CCP…?

2 Likes

Oh, I’m still in Eve. :yum:

No problem at all! I’m just happy that my little script helps others and makes the forums more friendly. :blush:

It would be nice for CCP to make this an option vs having to go throulgh this route. :frowning: Maybe one day! :grin:

4 Likes

Never not like a post by Erika Mizune, savior of our large squareness!

2 Likes

Daw thank you :heart_eyes:

1 Like

Don’t know if @Erika_Mizune is still active or if anyone else can help but there seems to be a problem with the Forum Portal script.

Whenever the forum page changes, the Portal Icon no longer appears next to the character portrait in the top right corner of the header.

However when the page is reloaded, the Portal Icon is back active.

The Portal Icon stays active while browsing various sub-forums, it disappears when you open / reply to a thread. Reloading / refreshing the page will display the Portal Icon again.

Anyway, this issue is more of an inconvenience / nuisance, hopefully it can be easily fixed.

Also for some reason the original generic icon for discobot is now being displayed. It no longer displays the Drone icon and I haven’t changed the script.

@Nana_Skalski @Uriel_Paradisi_Anteovnuecci @Vortexo_VonBrenner

Just wondering if any of you still have the User Scripts working, for some reason mine stopped working and I’d like to get them active again, these forums are much more user friendly with the scripts enabled.

// ==UserScript==
// @name         Eve Avatar/Sub-Category Adjustment (120x120)
// @namespace    erika-mizune-eve-forum-avatar-adjustment-120
// @version      1.0
// @description  Resize forum avatars and readjust subcategory layout
// @author       Erika Mizune
// @match        https://forums.eveonline.com/*
// @grant        none
// ==/UserScript==

/*jshint multistr: true */

$('head').append(
    '\
<style>\
span.subcategory { display: table-row !important; }\
.topic-avatar img.avatar { height: 140px; width: 140px; border-radius: 0; }\
.topic-avatar { width: 140px !important; }\
section.embedded-posts.bottom .topic-avatar img.avatar { height: 45px; width: 45px; border-radius: 50%; }\
section.embedded-posts.bottom .topic-avatar { width: 45px !important; }\
section.embedded-posts.top .topic-avatar img.avatar { height: 45px; width: 45px; border-radius: 50%; }\
section.embedded-posts.top .topic-avatar { width: 45px !important; }\
#user-card .user-card-avatar { float: left; margin-right: 10px; margin-top: -25px; }\
#user-card .user-card-avatar img.avatar { border-radius: 0 !important; }\
#user-card h2.username { visibility: hidden; margin-top: -30px; }\
span.second.username { visibility: hidden; }\
</style>\
'
);

$(window).on("load resize scroll",function(e){
    var imagelist = Array.from(document.getElementsByTagName('img'));
    imagelist.forEach(function(element) {
        element.src = element.src.replace("/45/", "/240/");
    });
    var botimg = Array.from(document.getElementsByTagName('img'));
    botimg.forEach(function(element) {
        element.src = element.src.replace("https://discourse-cdn-sjc1.com/eveonline/user_avatar/forums.eveonline.com/discobot/240/99_1.png", "https://discourse-cdn-sjc1.com/eveonline/uploads/default/original/2X/9/94fc4dd8ad6f71870b31e9987feea8171438af31.png");
    });
var botimgsmall = Array.from(document.getElementsByTagName('img'));
    botimgsmall.forEach(function(element) {
        element.src = element.src.replace("https://discourse-cdn-sjc1.com/eveonline/user_avatar/forums.eveonline.com/discobot/240/99_1.png", "https://discourse-cdn-sjc1.com/eveonline/uploads/default/original/2X/9/94fc4dd8ad6f71870b31e9987feea8171438af31.png");
    });
var botimgmed = Array.from(document.getElementsByTagName('img'));
    botimgmed.forEach(function(element) {
        element.src = element.src.replace("https://discourse-cdn-sjc1.com/eveonline/user_avatar/forums.eveonline.com/discobot/240/99_1.png", "https://discourse-cdn-sjc1.com/eveonline/uploads/default/original/2X/9/94fc4dd8ad6f71870b31e9987feea8171438af31.png");
    });
});

Its entire script.
I use Tampermonkey 4.9.6095 2019-11-15
And Firefox 71.0 (64 bit)
Dont know if it works elsewhere.

If it doesnt work with this setup. I think it may be something else blocking scripts for browser. Or the script was turned off.

EDIT: well it worked until I wanted to show the avatar picture using function show the picture in the right click menu in Firefox. Now it doesnt work. :thinking:

Dont know why…

EIDT 2: Now it works, but in Opera. :ok_hand:

1 Like

I had to use Opera, in Opera it works ok. There is Tampermonkey for Opera too.

I actually use Opera for some time, and resigned from Firefox entirely, only used to check if it works because I had Tampermonkey with script installed there, and it didnt. Its worse for me than Opera honestly.

1 Like

Yeah, I have Win 10 with Firefox 71.0

Most of the scripts were working fine til last night. I was in-game and had my browser open but minimized to task bar and when I pulled it up, the browser flashed black and then came back with the scripts no longer working.

I’m just a user, not a programmer. So since you say it still works on Opera but no longer on Firefox, maybe it’s due to a recent update to Firefox?

I downloaded Opera and most of the scripts are working. Still have the issue with the Forum Portal disappearing when accessing a different page in the forums, however refreshing the page displays it again.

Firefox must have implemented an update that killed TamperMonkey scripts. Anyway, thanks for looking into it and letting me know about Opera browser, guess that will be my Eve Browser now. Currently adding all Eve related sites to it.

:slightly_smiling_face:

I think Tampermonkey update on Firefox may repair it, but it will probably take some time for Tampermonkey creator.

1 Like

Any idea on how to fix the Forum Portal script so that it continues to show after changing to a different forum page?

Unfortunately I have no idea. I dont know how to write scripts and what are those commands there doing, only recognized few things like setting the size of avatars so I could make them bigger. With some trial and error. :woman_shrugging:

1 Like

Ahh, ok, you’re just another user like me.

We’d be great in Tron.

:wink:

1 Like

Well, seems I got a new issue, now when I refresh the page to make the Forum Portal appear, all the scripts stop working. I went to the script dashboard and enabled them again, then tried to reactivate them by refreshing the page but it wouldn’t happen until I did it on the main forum page.

:worried:

Today I found out the forum uses 90px avatars by default, so I publish new script with the images being fixed. Now they should not be displayed as 90px versions, but bigger and clearer ones, 240px.

// ==UserScript==
// @name         Eve Avatar/Sub-Category Adjustment (120x120)
// @namespace    erika-mizune-eve-forum-avatar-adjustment-120
// @version      1.0
// @description  Resize forum avatars and readjust subcategory layout
// @author       Erika Mizune
// @match        https://forums.eveonline.com/*
// @grant        none
// ==/UserScript==

/*jshint multistr: true */

$('head').append(
    '\
<style>\
span.subcategory { display: table-row !important; }\
.topic-avatar img.avatar { height: 140px; width: 140px; border-radius: 0; }\
.topic-avatar { width: 140px !important; }\
section.embedded-posts.bottom .topic-avatar img.avatar { height: 45px; width: 45px; border-radius: 50%; }\
section.embedded-posts.bottom .topic-avatar { width: 45px !important; }\
section.embedded-posts.top .topic-avatar img.avatar { height: 45px; width: 45px; border-radius: 50%; }\
section.embedded-posts.top .topic-avatar { width: 45px !important; }\
#user-card .user-card-avatar { float: left; margin-right: 10px; margin-top: -25px; }\
#user-card .user-card-avatar img.avatar { border-radius: 0 !important; }\
#user-card h2.username { visibility: hidden; margin-top: -30px; }\
span.second.username { visibility: hidden; }\
</style>\
'
);

$(window).on("load resize scroll",function(e){
    var imagelist = Array.from(document.getElementsByTagName('img'));
    imagelist.forEach(function(element) {
        element.src = element.src.replace("/90/", "/240/");
    });
});
1 Like

Definitely nice and thanks, I can see the difference in the character portraits…