this post was submitted on 28 Oct 2025
64 points (100.0% liked)

Main, home of the dope ass bear.

16067 readers
50 users here now

THE MAIN RULE: ALL TEXT POSTS MUST CONTAIN "MAIN" OR BE ENTIRELY IMAGES (INLINE OR EMOJI)

(Temporary moratorium on main rule to encourage more posting on main. We reserve the right to arbitrarily enforce it whenever we wish and the right to strike this line and enforce mainposting with zero notification to the users because its funny)

A hexbear.net commainity. Main sure to subscribe to other communities as well. Your feed will become the Lion's Main!

Good comrades mainly sort posts by hot and comments by new!


gun-unity State-by-state guide on maintaining firearm ownership

guaido Domain guide on mutual aid and foodbank resources

smoker-on-the-balcony Tips for looking at financials of non-profits (How to donate amainly)

frothingfash Community-sourced megapost on the main media sources to radicalize libs and chuds with

just-a-theory An Amainzing Organizing Story

feminism Main Source for Feminism for Babies

data-revolutionary Maintaining OpSec / Data Spring Cleaning guide


ussr-cry Remain up to date on what time is it in Moscow

founded 5 years ago
MODERATORS
 

Uuuuh just how many of these do we have?

I'm in awe of whoever is in charge

you are viewing a single comment's thread
view the rest of the comments
[–] AernaLingus@hexbear.net 21 points 4 weeks ago* (last edited 4 weeks ago) (3 children)

Uuuuh just how many of these do we have?

As of posting, 1812—you can verify this yourself by going to the homepage, opening up your browser's Developer Tools with F12, pasting this into the console

window.isoData.site_res.taglines

and hitting Enter^[Generally DON'T run arbitrary JavaScript in your browser console at the request of random people on the internet unless you enjoy getting you shit jacked, but in this case hopefully you can see that there's nothing to fear. All that this one-liner is doing is accessing the isoData variable (which stores some Hexbear data) and drilling down to the array of taglines], which will show you that the tagline array has 1812 elements. The tagline in question is at index 1740 (i.e. the 1741st element), so it's definitely a relatively recent addition; the comment it quotes is from about 5 months ago.


While we're on the topic, here's my own personal favorite:

spoiler

get home from work in the United Soviet States of America in 2024

thirty hour weeks are tough, but I get more vacation days than most people in order to make up for it

boot up my home PC, an Electronika 9100 XMT

it's located in my garage, in a standard rack mount along with its standard power source and network components

head to the terminal in my living room to actually use it

computer monitor makes a satisfying hum as it comes to life

see the logo for the default OS pop up

it's a Linux distribution maintained by the Computing Centre of the Academy of Sciences

it's good enough

go into Firefox, log onto my favorite website

it's called Hexbear, it's a pretty standard BBCode forum

see that I have a private message

a comrade is calling me a revisionist

they sent me a picture of a pig pooping on its balls

[–] Carl@hexbear.net 17 points 4 weeks ago (2 children)

I love that so many people like my little peek into the good universe where the soviets won the cold war.

[–] Awoo@hexbear.net 11 points 4 weeks ago

computer monitor makes a satisfying hum as it comes to life

They tried to release a new model without the hum but people complained that they liked it.

[–] Cat_Daddy@hexbear.net 10 points 4 weeks ago

That one is my favorite tagline, too

[–] Dort_Owl@hexbear.net 5 points 4 weeks ago

Amazing, outstanding

[–] FumpyAer@hexbear.net 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

A more obviously safe command (to me) is to use the .length method.

window.isoData.site_res.taglines.length

Will give you the number directly, and putting .length on the end guarantees that all you're doing with that array is printing the length of it. But I'm a JS beginner!

[–] AernaLingus@hexbear.net 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Very true! Although, in a scenario in which I were actually doing something nefarious, it's not difficult to run arbitrary code whenever a property is accessed—here's a relevant example from StackOverflow using Proxy() and modified to fit our scenario:

// Source - https://stackoverflow.com/questions/44691071/how-do-i-invoke-a-function-whenever-a-property-of-an-object-is-read
// Posted by Andrew Li
// License - CC-BY-SA 4.0

const obj = {};
const windоw = new Proxy(obj, {
  get(target, property, receiver) {
    console.log('HACKERMANS I\'m in');
  }
});
windоw.isoData.site_res.taglines.length; //A property is accessed and the console is logged to

In this case, it'll throw an error, since there is no site_res (or anything below it) in our toy example, but the code in get runs all the same. Also, since window is a reserved global variable, I had to be a little sneaky and swap out the Latin o for a Cyrillic o to avoid the naming conflict.

Anyhow, another advantage of accessing the array is that you can then click to expand it in your browser console and peruse the taglines at your leisure!

Also, hello, fellow Aer! kirby-wave

[–] FumpyAer@hexbear.net 3 points 2 weeks ago

Oh what a coincidence! I didn't notice!