ursamajor: Tajel on geeks (geeks: love them)
[personal profile] ursamajor
so i'm not really a goth. and i don't really go to goth parties. i mean, i can appreciate a hottie in leather and all, but the scene isn't really my thing.

now, people post goth party notices to [livejournal.com profile] b0st0n, like, all the freakin' time. (i think the fact that i mostly unironically used "like" in that context disqualifies me from being mistaken for a goth, EVER.) and i'm sure these are nice people, but i don't really care enough about knowing that their parties are going on to keep it on my friendspage. however, useful info is still posted to [livejournal.com profile] b0st0n, and defriending it would be throwing the baby out with the bathwater.

i suppose i could ask them to lj-cut their posts, but i'm too lazy and i prefer to avoid the drama. :)

so instead, i just wrote a function for my style that checks to see if a user posting to a community is in an array that contains the usernames of people whose goth party ads i don't really care to see on my friendslist. and if it is, automagically lj-cuts the post, marking it goth party spam.

i'm not a programmer. but some days, i surprise myself with what i end up managing to do, after all.

this is based heavily on the meme-cutter function.

this gets put up towards the top of your style, when various functions start being declared:


function contains_goth(string content) : bool {
var string[] ljgoths = [ "othniel77", "morbidiqua", "j_cannibal" ];
foreach var string ljgoth ($ljgoths) {
if ($content == $ljgoth) { return true; }
}
return false;
}


and this gets put down somewhere in FriendsPage::print_entry , replacing the line

print $e.text; "<br />";:


# if (...) { should be one line!
if (($p.view == "friends") and ($e.poster.username != $p.journal.username) and (contains_goth($e.poster.username))) {
# following should be one line too, sigh
"""<br /><b>( <a href="$e.permalink_url">cut for goth party spam</a> )</b><br />""";
}
else {
print $e.text; "<br />";
}


1/26/24: OH, dear self, when you wrote this post, you were ... just over a week into dating the Manray-attending goth you would eventually marry. ROFL. Also, Manray would close its doors a month later, but boy howdy would the goth event promotion spam continue to be an issue, hahaha.

Profile

ursamajor: people on the beach watching the ocean (Default)
she of the remarkable biochemical capabilities!

July 2025

S M T W T F S
   12345
6789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 1st, 2025 07:55
Powered by Dreamwidth Studios