Official HQ review of El Matador is live, check it out: viewtopic.php?p=103777-el-matador
We have a Steam curator now. You should be following it. https://store.steampowered.com/curator/44994899-RPGHQ/
Support RPGHQ
HQ doesn't use ads or trackers; we rely entirely on donations from the community to fund operations and development. This independence ensures we can continue without any outside interference.

Click here to see donation options.

We have a new chat service

HQ-related news you should probably read.
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

We have a new chat service

Post by rusty_shackleford »

https://chat.rpghq.org/

It directly bridges with our IRC room, so there is no pressure to switch over if you're fine using IRC.
Last edited by rusty_shackleford on May 25th, 2024, 07:27, edited 1 time in total.
User avatar
dolor
Posts: 68
Joined: Apr 28, '24

Post by dolor »

is there an ignore feature?
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

Post by rusty_shackleford »

For those that prefer it, Lounge can still be accessed at https://rpghq.org/chat it won't be going away.
User avatar
Slavic Sorcerer
Posts: 930
Joined: Sep 9, '23
Location: Poland

Post by Slavic Sorcerer »

"How to connect using desktop version" guide for dummies would be kino
It's just my opinion, not the absolute truth
___________________________________

"Why don't you put that in your signature instead of having to type it every week?"
~Dead about me being gay

"Read his signature, he's gay"
~Dead
User avatar
WhiteShark
Turtle
Turtle
Posts: 2516
Joined: Feb 2, '23

Post by WhiteShark »

[m]  
User avatar
StudiedAsleep
Posts: 228
Joined: Apr 6, '24

Post by StudiedAsleep »

Hi, where is chat? I can't find it anywhere.
User avatar
SpellSword
Posts: 215
Joined: Jun 15, '23

Post by SpellSword »

I noticed that I got two invites when I tried joining the chat.
Image
Do I need to accept them for the IRC bridging to work?
The three evils that humanity faces:
Censorship
Telemetry
DRM
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

Post by rusty_shackleford »

SpellSword wrote: May 25th, 2024, 22:41
I noticed that I got two invites when I tried joining the chat.
Image
Do I need to accept them for the IRC bridging to work?
nope, you can if you want to
User avatar
SpellSword
Posts: 215
Joined: Jun 15, '23

Post by SpellSword »

rusty_shackleford wrote: May 25th, 2024, 22:42
SpellSword wrote: May 25th, 2024, 22:41
I noticed that I got two invites when I tried joining the chat.
Image
Do I need to accept them for the IRC bridging to work?
nope, you can if you want to
I'm unfamiliar with Cinny what am I accepting?
The three evils that humanity faces:
Censorship
Telemetry
DRM
User avatar
Vergil
Posts: 4659
Joined: Sep 6, '23

Post by Vergil »

I declined them but we warned it'll invite you every time you log in if you log out.
As soon as they like you, make 'em unlike you.
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

Post by rusty_shackleford »

SpellSword wrote: May 25th, 2024, 22:45
rusty_shackleford wrote: May 25th, 2024, 22:42
SpellSword wrote: May 25th, 2024, 22:41
I noticed that I got two invites when I tried joining the chat.
Image
Do I need to accept them for the IRC bridging to work?
nope, you can if you want to
I'm unfamiliar with Cinny what am I accepting?
one is a PM from the IRC bridge bot, the other is a PM from the IRC network itself
User avatar
asf
Turtle
Turtle
Posts: 710
Joined: Feb 2, '23
Gender: Helicopter

Post by asf »

chat is now all gayed up
User avatar
Vergil
Posts: 4659
Joined: Sep 6, '23

Post by Vergil »

asf wrote: May 25th, 2024, 22:52
chat is now all gayed up
You don't have to announce your arrival everytime like this.
As soon as they like you, make 'em unlike you.
User avatar
Decline
Posts: 687
Joined: Mar 29, '23

Post by Decline »

Vergil wrote: May 25th, 2024, 23:07
asf wrote: May 25th, 2024, 22:52
chat is now all gayed up
You don't have to announce your arrival everytime like this.
User avatar
loregamer
Posts: 406
Joined: Dec 3, '23

Post by loregamer »

Userscript to add profile pics and "[irc]" to irc users
Image

Code: Select all

// ==UserScript==
// @name         Add User Pictures and Add [irc] to Names
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Add pictures to users in Cinny Matrix client by user ID and add [irc] to their display names
// @author       loregamer
// @match        https://chat.rpghq.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=rpghq.org
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Array of users and their corresponding image URLs
    const userPictures = [
        {
            userId: '@irc_Gregz:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=87.jpg'
        },
        {
            userId: '@irc_Kalarion:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=71.png'
        },
        {
            userId: '@irc_Kalarion1:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=71.png'
        },
        {
            userId: '@irc_Kalarion7:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=71.png'
        },
        {
            userId: '@irc_Kalarionis:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=71.png'
        },
        {
            userId: '@irc_Tweed:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=68.png'
        },
        {
            userId: '@irc_Tweedagain:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=68.png'
        },
        {
            userId: '@irc_WhiteShark:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=63.png'
        },
        {
            userId: '@irc_decline:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=225.png'
        },
        {
            userId: '@irc_Norfleet:rpghq.org',
            imageUrl: 'https://i.postimg.cc/T2z1mDLK/image.png'
        },
        {
            userId: '@irc_Sex_Cult_Leader:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=65.gif'
        },
        {
            userId: '@irc_stackofturtles:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=3301.png'
        },
        {
            userId: '@irc_twig:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=2.png'
        },
        {
            userId: '@irc_Roguey:rpghq.org',
            imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=86.png'
        }
        // Add more users here
        // {
        //     userId: '@irc_AnotherUser:rpghq.org',
        //     imageUrl: 'https://rpghq.org/forums/download/file.php?avatar=USERID.jpg'
        // }
    ];

    // Function to add pictures to users, hide outline for users without a profile picture, and add [irc] to display names
    function addUserPictures() {
        const allUserElements = document.querySelectorAll('[data-user-id]');

        allUserElements.forEach(function(element) {
            const userId = element.getAttribute('data-user-id');
            const avatarContainer = element.querySelector('span._1684mq5d');
            const displayNameElement = element.querySelector('span._1xny9xl0 b');

            const user = userPictures.find(user => user.userId === userId);

            if (user && avatarContainer) {
                if (!avatarContainer.querySelector('img')) {
                    const img = document.createElement('img');
                    img.src = user.imageUrl;
                    img.alt = user.userId;
                    img.classList.add('_1684mq5c', '_1mqalmd1', '_1mqalmd0', 'awo2r00');
                    img.style.width = '100%';
                    img.style.height = '100%';

                    avatarContainer.innerHTML = '';
                    avatarContainer.appendChild(img);
                }
            } else if (avatarContainer) {
                avatarContainer.style.border = 'none'; // Hide the outline
                avatarContainer.style.borderRadius = '0'; // Remove the border-radius
            }

            if (user && displayNameElement && !displayNameElement.textContent.includes('[irc]')) {
                displayNameElement.textContent += ' [irc]';
            }
        });
    }

    // Mutation observer to detect changes in the DOM
    const observer = new MutationObserver((mutations) => {
        mutations.forEach((mutation) => {
            if (mutation.addedNodes.length > 0) {
                addUserPictures();
            }
        });
    });

    // Start observing the DOM for changes
    observer.observe(document.body, { childList: true, subtree: true });

    // Initial run to update existing elements
    window.addEventListener('load', function() {
        addUserPictures();
    });
})();
Last edited by loregamer on June 16th, 2024, 20:20, edited 4 times in total.
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

Post by rusty_shackleford »

Those avatar URLs aren't stable, you can use the URL with just the user ID to get a stable one e.g.,
download/file.php?avatar=87.jpg
User avatar
loregamer
Posts: 406
Joined: Dec 3, '23

Post by loregamer »

rusty_shackleford wrote: Today, 19:37
Those avatar URLs aren't stable, you can use the URL with just the user ID to get a stable one e.g.,
download/file.php?avatar=87.jpg
Cool cool. Any chance you could make it so I could fetch avatars with a username? Then I think I could make it so we don't have to just add to the array manually.
User avatar
rusty_shackleford
Site Admin
Posts: 11901
Joined: Feb 2, '23
Gender: Watermelon

Post by rusty_shackleford »

loregamer wrote: Today, 19:40
rusty_shackleford wrote: Today, 19:37
Those avatar URLs aren't stable, you can use the URL with just the user ID to get a stable one e.g.,
download/file.php?avatar=87.jpg
Cool cool. Any chance you could make it so I could fetch avatars with a username? Then I think I could make it so we don't have to just add to the array manually.
Don't think there's any way to fetch usernames by user ID, off the top of my head anyways
User avatar
asf
Turtle
Turtle
Posts: 710
Joined: Feb 2, '23
Gender: Helicopter

Post by asf »

ban everybody not using irc, problem solved
User avatar
loregamer
Posts: 406
Joined: Dec 3, '23

Post by loregamer »

Added some more user PFPs and used the stable URLs
User avatar
Tweed
Turtle
Turtle
Posts: 1764
Joined: Feb 2, '23

Post by Tweed »

I've called the FBI.
User avatar
Eyestabber
Turtle
Turtle
Posts: 173
Joined: Feb 4, '23

Post by Eyestabber »

rusty_shackleford wrote: May 25th, 2024, 06:31
https://chat.rpghq.org/

It directly bridges with our IRC room, so there is no pressure to switch over if you're fine using IRC.
Where is the "decline" button?