Page 17 of 85

Re: Google Chrome Extension

Posted: 30 July 2024, 17:47
by Sammy McSam
Really nice that /gameinprogress and /welcome pages update instantly on toggle :)

Settings > Home page settings:
Rename toggle label "Recent games hidden" -> "New games hidden" to match the page's section title "New" ?
----

/forum
I'd like to show or hide selected forums e.g. Hanabi (/forum/viewforum.php?f=102)

Custom CSS in an <iframe> doesn't work:

Code: Select all

#bgaforum_102 { display:none; }
Is this something that can be done in the extension?
Maybe even using the Hidden games list to remove the corresponding forums from view?

Re: Google Chrome Extension

Posted: 31 July 2024, 11:12
by Tof63
Sammy McSam wrote: 30 July 2024, 17:47 Really nice that /gameinprogress and /welcome pages update instantly on toggle :)
To be honest, I think it's cool too :D
Unnecessary, therefore indispensable
Sammy McSam wrote: 30 July 2024, 17:47 Settings > Home page settings:
Rename toggle label "Recent games hidden" -> "New games hidden" to match the page's section title "New" ?
You are right!
Sammy McSam wrote: 30 July 2024, 17:47 /forum
I'd like to show or hide selected forums e.g. Hanabi (/forum/viewforum.php?f=102)

Custom CSS in an <iframe> doesn't work:

Code: Select all

#bgaforum_102 { display:none; }
Is this something that can be done in the extension?
Maybe even using the Hidden games list to remove the corresponding forums from view?
I don't seem to be able to determine which game a section of the forum corresponds to (apart from the name of the game, but I don't even have that information when I hide a game).
However, I can make sure that the custom css you define in the extension is also applied to the forum. I'll do that in the next version.

Re: Google Chrome Extension

Posted: 31 July 2024, 22:55
by Tof63
BGA displays the event calendar in the “new games” section of the home page.
I've just published a version in which this section is necessarily visible, so that nobody misses the calendar.
It's temporary, I'll add an option tomorrow ...

Re: Google Chrome Extension

Posted: 01 August 2024, 06:58
by buu441
The new summer of games banner in the homepage looks so cursed right now :'D waiting for the update you mentioned.

Re: Google Chrome Extension

Posted: 01 August 2024, 11:06
by Tof63
:oops:

Should be better in a few hours now :(

(In version 1.9.35)

Edit : it's available :)

Re: Google Chrome Extension

Posted: 01 August 2024, 16:30
by Sammy McSam
Thanks for the forum CSS update!
How I Hide BGA Forums with CSS:
e.g. Hanabi
  1. Find Hanabi
  2. Copy hide cell

    Code: Select all

    #bgaforum_102{display:none !important;}/*hide Hanabi forum*/
  3. Right-click extension icon > Options > Custom CSS tab
  4. Paste & Save
Alternatively hide all and show only select forums:

Code: Select all

.bgaforum{display:none !important;}/*Hide all forums*/

#bgaforum_102{display:block !important;}/*show Hanabi forum*/

Re: Google Chrome Extension

Posted: 02 August 2024, 07:12
by Tof63
Nice work McSam!

I'm hesitating to integrate all this into the extension in the end.
What would be needed is a file indicating for each game name (the name you can find in its url, like for example https://boardgamearena.com/gamepanel?ga ... reflection) its forum section.

Something like this:

{
“laserreflection": 609,
“regicide": 593,
(...)
}

What I need is a little time, or some help, @McSam would you be willing to create and maintain this file?

Re: Google Chrome Extension

Posted: 02 August 2024, 08:29
by Jellby
If it helps, in each game page (e.g. https://boardgamearena.com/gamepanel?game=hanabi) you should find a link to the forum as either "See all topics" or "Create a new topic!", which should have the forum number (i.e. https://boardgamearena.com/forum/viewforum.php?f=102).

Re: Google Chrome Extension

Posted: 02 August 2024, 08:47
by Tof63
Actually it gives me an idea to automatize this ...
I will try something!

Edit: nope, I can't find an easy way to find automatically this info

Re: Google Chrome Extension

Posted: 02 August 2024, 12:14
by GTSchemer
I agree it might not be an ideal feature for a few reasons, including complexity and the possibility of extra server load or processing time. If it can be hidden via custom CSS that might be sufficient for most users unless it's an extremely popular request.