Commit Graph

310 Commits (6e1a423226c8bf50d8324b91a2d4d7c38d593fef)

Author SHA1 Message Date
Aevann f35f495b17 add this https://rdrama.net/h/countryclub/post/79285/-/5029126#context 2023-09-21 23:02:12 +03:00
Aevann 8efb8de6cb rename a variable for clarity 2023-09-21 22:32:59 +03:00
Aevann c930c21004 move some shit out of const.py into regex.py 2023-09-20 18:43:00 +03:00
Aevann 577ca190be fix this https://rdrama.net/post/205335/potential-huge-drama-for-reddit-fricking/5016437#context 2023-09-20 18:41:17 +03:00
Aevann 1eabaca2c1 use search-new + unify reddit profile url 2023-09-18 21:26:21 +03:00
Aevann c5511541d5 apparently s_urls are a thing in profile posts too https://rdrama.net/post/204924 2023-09-17 22:33:57 +03:00
Aevann 4b69ff1b0d improve css_url_regex 2023-09-15 04:40:53 +03:00
Aevann e824a3a476 put all youtube regexes next to eachother like reddit 2023-09-15 04:25:38 +03:00
Aevann e78a6f539d remove unnecessary slash 2023-09-15 04:24:16 +03:00
Aevann e74926a5a3 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4941566#context 2023-09-15 04:23:38 +03:00
Aevann 7c1520d37d minor unnecessary improvement to a couple of regexes 2023-09-15 04:23:15 +03:00
Aevann efa82d4c32 remove unnecessary youtube archival that doesnt even work 2023-09-15 04:19:09 +03:00
Aevann 407f718613 add .title() slur replacer (tested on staging, max time it delayed the request by was 20 milliseconds, worth it IMO) 2023-09-14 23:46:20 +03:00
Aevann 5e6ebb3599 only add ?context=8 to comment links 2023-09-14 03:32:22 +03:00
Aevann 03b33deb26 allow subreddit links to get converted to old.reddit.com too 2023-09-14 03:30:47 +03:00
Aevann e375e44645 remove unnecessary dashes 2023-09-14 03:23:24 +03:00
Aevann 4dbd55d372 simplify regex 2023-09-14 03:11:00 +03:00
Aevann 497a39e266 remove unnecessary garbage from reddit_domain_regex 2023-09-14 03:09:32 +03:00
Aevann 54717e21b1 replace reddit.com/user/blahblah too 2023-09-14 03:06:54 +03:00
Aevann 7996feacc5 use proper order in regex (doesnt rly matter) 2023-09-09 01:53:47 +03:00
Aevann b3d61fb515 dedup shit and make it work in all contexts 2023-09-09 01:41:17 +03:00
Aevann ee5748abd1 rename variable to prevent future confusion 2023-09-09 01:31:18 +03:00
Aevann ca9482b520 the final solution to reddit /s/ links --- in posts only 2023-09-09 00:32:23 +03:00
Aevann 99f28d1355 like last commit 2023-09-08 22:02:41 +03:00
Aevann 8419fcc265 css_url_regex improvement 2023-09-08 22:02:10 +03:00
Aevann c84c508962 Revert "destroy the /s/ menace"
This reverts commit f84ba52d9c.
2023-09-08 21:12:49 +03:00
Aevann f84ba52d9c destroy the /s/ menace 2023-09-08 21:08:02 +03:00
Aevann 9828c6781f put all reddit regexes together 2023-09-08 21:00:04 +03:00
Aevann 33f8d5a88c minor rename for less future confusion 2023-09-08 20:56:23 +03:00
Aevann 6a30528634 fix edge case + add warning for future me 2023-09-08 20:11:55 +03:00
Aevann 2a91531599 fix url("https://i.rdrama.net/someimage.webp"); not being accepted 2023-09-08 19:31:40 +03:00
Aevann 74b60a1854 improvement since ) is optional if its the last characters 2023-09-07 21:32:43 +03:00
Aevann 67d86bc53d fix css_url_regex 2023-09-07 16:04:10 +03:00
Aevann 9386a55933 better fix to ip exploit 2023-09-07 15:25:09 +03:00
Aevann 4a0e216c28 improve css_url_regex 2023-09-06 15:54:49 +03:00
Aevann 0c66183986 fix 1-letter and 2-letter names not accounted for 2023-08-18 21:59:13 +03:00
Aevann ab26a09e61 there can be 2-letter subreddit (like /r/de) 2023-08-18 21:58:55 +03:00
Aevann 88bfaa3326 allow carp to delete image assets 2023-08-17 03:07:13 +03:00
Aevann ccdb853266 add unnecessary backslashes 2023-08-17 02:48:15 +03:00
Aevann 02e98b6a91 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4813698#context 2023-08-17 02:08:25 +03:00
Aevann cb48c6428d add escape in regex (unnecessary) 2023-08-16 22:07:33 +03:00
Aevann fa222922b9 fix reddit-app-generated links 2023-08-16 00:18:48 +03:00
Aevann 99b0aab584 make sharpen award not affect codeblocks 2023-08-15 23:11:05 +03:00
Aevann c20513b7ca remove leftover code breaking shit 2023-08-14 14:56:55 +03:00
HeyMoon 341be49a31 Fix rumble orgies (#193)
Aevann broke it 😭😭😭 HeyMoon fixed it 😎😎😎

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #193
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-08-12 21:33:37 +00:00
Aevann 77ddfa6a7b fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4788376#context 2023-08-12 17:17:55 +03:00
top 6ce7a042ea Update emoji regex (#185)
Quick change to double the emoji regex since I've added a shitload of new modifiers that can all be used together

Prevented marseys such as :marseytransgenocidegenocidepattalking: from working

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: #185
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
2023-08-10 12:36:58 +00:00
Aevann aa5a56aec7 decrease edge chance from 5% to 1% 2023-08-07 16:11:10 +03:00
Aevann 008e0c9791 add #coinflip 2023-08-06 11:07:48 +03:00
Aevann 3811babd75 discord changed their username scheme 2023-08-06 10:42:31 +03:00
Aevann e50de38705 apparently reddit subs can be 2 letters (like /r/de) 2023-08-06 10:39:56 +03:00
Aevann dc59bfc5a5 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4738827#context 2023-08-06 05:47:12 +03:00
Aevann 1977941bb3 dont execute image_sub_regex in code or links 2023-08-06 05:41:53 +03:00
Aevann 3330c2517f total tracking parameter death 2023-08-05 21:51:09 +03:00
Aevann c7b7eb26e1 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4693984#context 2023-08-05 18:47:29 +03:00
Aevann 175a3df9a8 fix regex 2023-08-03 13:27:29 +03:00
Aevann 5e179953d5 fix the 2nd bug reported in this comment https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4714508#context 2023-08-03 11:28:52 +03:00
Aevann 201eec7aa5 allow paypigs to have 1-letter and 2-letter names 2023-08-01 09:46:12 +03:00
Aevann 18df32de4b remove now-unneeded line 2023-08-01 09:45:43 +03:00
Aevann 8beb2d7e8e remove typing (useless code bloat) 2023-07-30 03:42:06 +03:00
Aevann 4f6d66e707 same as last commit 2023-07-29 03:20:00 +03:00
Aevann f67526de1b update video_link_regex to work with the new imported videos 2023-07-29 03:03:29 +03:00
Aevann 37c9307fc4 better handling of large emojis in places where they're not allowed 2023-07-22 13:10:27 +03:00
Aevann d865e1e86a fix this https://rdrama.net/post/189576/rplace-just-expanded/4629703#context 2023-07-22 13:03:57 +03:00
Aevann 3be01ba40a dont filter slurs in code 2023-07-18 16:00:37 +03:00
Aevann bdd6df2016 more understandable syntax 2023-07-18 14:35:27 +03:00
Aevann 8c1c1d83c9 fix this https://watchpeopledie.tv/h/aftermath/post/49260/male-wanting-to-commit-suicide-ends/1251440#context 2023-07-14 17:47:06 +03:00
Aevann ee55030480 much better poll system 2023-07-14 17:46:35 +03:00
Aevann 4f84e2d3fe fix this https://rdrama.net/post/187155/introducing-pullpush-restoring-blocked-cow-tools/4565609#context 2023-07-14 14:13:54 +03:00
Aevann 5b03b9a793 fix 2023-07-12 04:25:18 +03:00
Aevann f1b1e6afc4 fix 2023-07-12 04:07:27 +03:00
HeyMoon abd91f81ac Orgies: Support Rumble and Twitch and Mobile Viewing (#169)
Hell yeah

 - Rumble.com, basically youtube for rightoids (so you can do more edgy streams)
 - Twitch
 - Mobile orgy support, it's pretty bad thoever
 - Button to switch back to normalchat for phonefags

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #169
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-10 00:38:02 +00:00
Aevann 8c08818d35 improve NOT_IN_CODE_OR_LINKS 2023-07-03 03:20:55 +03:00
HeyMoon 331b35a3f9 fix Xmaxxing (and add badass images) (#164)
Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #164
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-02 17:41:46 +00:00
Aevann 07695039d7 escape / 2023-07-02 20:24:21 +03:00
Aevann f0cfa8c916 fix this https://rdrama.net/post/173066/my-im-starting-to-believe-rightoid/4217124#context 2023-07-01 02:59:42 +03:00
Aevann d003822dc0 constantify frequently-used regex negative lookahead group 2023-06-30 21:29:53 +03:00
Aevann f3276b8c4e same as last commit 2023-06-26 20:58:47 +03:00
Aevann a284bfd470 fix invalid url 2023-06-26 20:56:56 +03:00
HeyMoon 36779a7ad1 Add the edgy award (and some other goodies) (#157)
# The Edgy Award
* Makes text bold, italic, and red, symbolizing the fire that burns within.
* Adds "fucking" to various places, after articles and prepositional phrases (I think) (tbh I just eyeballed it). EX: He is the fucking best
* Adds "motherfucker" and "bitch" to exclamations and questions, respectively.

# Goodies
* For the queen award:
	* based => comfy
    * Xpilled => x vibes
    * Xmaxxing => normalizing X

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #157
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-06-26 14:38:48 +00:00
Aevann 4849ac724f complement c8116a401a 2023-06-26 15:38:36 +03:00
Aevann dce087fed0 allow emojis in link text 2023-06-24 19:03:07 +03:00
Aevann e2629bc523 fix last commit 2023-06-24 18:01:22 +03:00
Aevann bc0763591e fix this https://rdrama.net/post/175307/pol-ugandans-are-officially-based-white/4269362#context 2023-06-24 17:25:05 +03:00
Aevann 57ac7f4f73 increase pronouns character limit from 11 characters to 15 characters 2023-06-22 15:57:36 +03:00
HeyMoon b304d00169 Improve the Queen award (#156)
Fixed bugs:
 - Sometimes two people would get the same username
 - Sometimes a whole post would have the same prefix
 - Links would be broken
 - Greentext would be broken
 - strings of periods do not become "and, and, and, and,"

New stuff:
 - New girl catchphrases
 - New girl pfps
 - Catchphrases have a chance to not be applied (50%, but configurable)
 - A lot more regexes
 	- everyone => literally everyone (and others)
    - into => totally into
    - hello => hiiiiiiii (and others)
    - just => like just
    - i mean => i mean like
    - ! => !!!

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #156
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-06-22 05:20:33 +00:00
HeyMoon 5d53820515 Add the "Misogynist" award to harass incels (#154)
Whazzup? This PR is the final solution to the incel problem. There's an old indian proverb that says: "never judge a man until you've walked two moons in his mocassins". In this case, it should be: "never judge a woman until you've walked 24 hrs in her high-heels".

The misogynist award is a comment-transforming award that "feminizes" comments. It does the following:
 - makes text pink
 - makes text lowercase
 - removes "complicated" punctuation
 - makes paragraphs into run-on sentences
 - adds stereotypical girly remarks to the beginning or end of a paragraph.

For example:
INPUT

> What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little "clever" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.

OUTPUT
> im literally screaming, what the fuck did you just fucking say about me, you little bitch? ill have you know i graduated top of my class in the navy seals, and ive been involved in numerous secret raids on al-quaeda, and i have over 300 confirmed kills, i am trained in gorilla warfare and im the top sniper in the entire us armed forces, you are nothing to me but just another target, i will wipe you the fuck out with precision the likes of which has never been seen before on this earth, mark my fucking words, you think you can get away with saying that shit to me over the internet? think again, fucker, as we speak i am contacting my secret network of spies across the usa and your ip is being traced right now so you better prepare for the storm, maggot, the storm that wipes out the pathetic little thing you call your life, youre fucking dead, kid, i can be anywhere, anytime, and i can kill you in over seven hundred ways, and thats just with my bare hands, not only am i extensively trained in unarmed combat, but i have access to the entire arsenal of the united states marine corps and i will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit, if only you could have known what unholy retribution your little clever comment was about to bring down upon you, maybe you would have held your fucking tongue, but you couldnt, you didnt, and now youre paying the price, you goddamn idiot, i will shit fury all over you and you will drown in it, youre fucking dead, kiddo

It also sets the user's pfp to a random white woman. Well, psuedorandom - it's based off of the user's id, so each user will only ever have one pfp assigned to them, which I think is nifty.

Finally, it changes the name of the user toa girly name.

There is one small problem with the PR, which is simply that I manually added a badge for testing purposes. If you like this PR, I will submit the badge throught the proper chanels and fix it.

![image](/attachments/641c7276-ffe4-4e69-b3e9-aec9f4f94191)

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #154
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-06-21 12:36:07 +00:00
Aevann 076814022f minor fix 2023-05-22 17:57:58 +03:00
Aevann 09fd7a1bf7 1. unify all link processing logic in one place
2. fix this https://rdrama.net/post/168836/texas-shooter-identified-as-mauricio-garcia/4113391#context
3. fix this https://rdrama.net/post/168836/texas-shooter-identified-as-mauricio-garcia/4142945#context
2023-05-12 22:12:02 +03:00
Aevann 619bdba5b2 fix this https://rdrama.net/post/168774/marseynull-jershs-manifesto-just-dropped-marseyveryworriedtrans/4111081#context 2023-05-07 22:44:34 +03:00
Aevann b69a4c10e4 make hole and sub links appear when inside parantheses 2023-05-03 22:05:10 +03:00
Aevann 53247cec7e remove unnecessary regex part to accomodate d04992c712 2023-05-01 20:08:14 +03:00
Aevann 0cfdd6fdb6 dont generate pings inside polls (cuz it breaks them) 2023-04-27 15:45:20 +02:00
Aevann 002351a4e3 Revert "make the "https://" optional to embed a youtube video (I rly hope i dont regret this)"
This reverts commit 5ad46f3e53.
2023-04-25 10:01:51 +02:00
Aevann 5ad46f3e53 make the "https://" optional to embed a youtube video (I rly hope i dont regret this) 2023-04-25 09:35:01 +02:00
Aevann f279509b76 use \w instead of a-zA-Z0-9_ 2023-04-23 15:22:41 +02:00
Aevann 62b9cb6ae2 fix patting users with "_" and "-" in their username 2023-04-23 15:18:25 +02:00
Aevann 2edb56638c delete leftover line of code 2023-04-23 15:10:20 +02:00
Aevann ba28e84138 refactor torturing and also replace "my" and "mine" 2023-03-25 20:18:48 +02:00
Aevann f834514e1a fix deleting media 2023-03-25 17:07:12 +02:00