r/csshelp • • 13d ago

Looking for a hand to understand My issue

2 Upvotes

Hi, I'm not good with coding what so ever just managed to change css code colors somewhat easily with my friends help, neither of us good are good at coding. If you could look at the code and tell me how I could make this be a legit thing with the colors id appreciate it!

I am not sure if it helps but the colors I used are:

.white-border {
    background: #faeeb7 !important;
    stroke: #faeeb7 !important;


.white-fill {
    fill: #faeeb7 !important;
}

    background: linear-gradient(to bottom, #f59454, #f8d17c);
    color: #faeeb7;
    border-radius: 16px;
    border: solid 4px #a56608;

.bottom-border .separator-1 {
    height: 4px;
    background: #a56608;
    border-radius: 10px;
    width: 100%;
}


.bottom-border .separator-2 {
    height: 4px;
    background: #a56608;
    border-radius: 10px;
    width: 100%;
    margin-right: 16px;
}

.username {
    padding: 6px 32px;
    background: #fff5de;
    border-radius: 64px;
    display: flex;
    color: #ffc549;

Just trying to give honey vibe ig :"D (also the code is just parts from the full code of ccs, it is in the link)

(this is a f2u chat widget. Link: https://vtuber-nook.com/asset/1039/f2u-heart-shaped-chat-widget-for-streamelements/ I take no claim of this I simply just wanted to make it more customized to my own needs) (and I'm sorry if this is really dumb I just need help and I have no idea how to even look this issue)


r/reddithax • • Jul 22 '23

Python/Selenium Script To Remove All Reddit Comments

Thumbnail self.learnpython
3 Upvotes

r/csshelp • • 14d ago

images in div inherit its opacity despite instructions otherwise

2 Upvotes

i have a div set to .9 opacity, which the images inherit despite my efforts to change the following css in multiple forms. i also happen to have pixelated image rendering for the whole page. when i tested by setting the style of a specific image to auto-rendering, it worked. the same method did not work with setting this same image to 1.0 opacity


r/redditdev • • 6d ago

Reddit API geo_filter works with old reddit but not JSON API in r/popular?

3 Upvotes

This URL seems to always return the most popular posts in your region: https://oauth.reddit.com/r/popular/hot.json?rtj=only&redditWebClient=web2x&app=web2x-client-production&allow_over18=1&geo_filter=GLOBAL&forceGeopopular=true&sr_detail=1&raw_json=1&limit=7. After removing the ".json" and keeping the URL parameters, it gives you an old reddit HTML page where the geo_filter is respected. Any idea what's happening?


r/redditdev • • 8d ago

General Botmanship media.upload fails with "unable to get media lease for url" — Devvit Web 0.15.2

3 Upvotes

Hi all — hoping someone has hit this before. My app (joinaroo-local-event, Devvit Web 0.15.2) posts text fine from its scheduler (daily posts on four subreddits), but every `media.upload()` call fails:

```

Error: 2 UNKNOWN: grpc invocation failed with status 2; unable to get media lease for url: <url> unknown internal error

```

What I've tried:

- Two different source hosts. A file-hosting URL that returns 403 to plain fetches (that failure I understand), and our own production site: the file verifies 200 / image/jpeg / full bytes from the open internet, and our server access log shows Reddit's fetcher (Go-http-client/2.0, AWS IP) successfully GETting the complete file at the moment of the call — yet the lease still fails with the same error.

- Added `"media": true` to `permissions` in devvit.json (the top-level `"media": { "dir": "public" }` for bundled assets was already there). Re-uploaded and re-installed on all subs. No change — it fails at the upload call itself, before any post composition.

- The app is installed via upload + install and has never been published, in case that matters.

Questions: what actually grants a media lease? Does media upload require the app to be published/reviewed? If a permission is added in an update, do existing installs need a moderator to re-approve before the lease works? Or is there a known issue with the lease service?

Thanks for any pointers.


r/redditdev • • 9d ago

Reddit API Is there any way to get deeper data than the Insights tab, or export it to CSV?

7 Upvotes

I recently joined the mod team of a large subreddit and I’m trying to track community health week over week. Insights covers the basics, but I’m running into limits:

  • I can’t find a way to export the data (CSV or otherwise). Everything has to be copied by hand.
  • Insights shows fixed time windows, so I can’t build a long-term history or compare periods on my own terms.

What I’ve looked at so far:

  • The Data API appears to be closed to new access requests.
  • I’m exploring a Devvit app, but as far as I can tell it doesn’t expose Insights metrics like views or unique visitors, only things like subscriber count, post and comment details, mod queue and mod log.

My questions:

  1. Is there an official way to export Insights data, or any plan to add one?
  2. Is there another supported way for mods to get views, unique visitors or per-post traffic data programmatically?
  3. If not, how are other mod teams tracking this over time? Any tools, apps or workflows you’d recommend?

Thanks in advance, and happy to share what I end up building if it’s useful to others.


r/csshelp • • 21d ago

Title: What's the most annoying CSS bug you've ever spent hours trying to fix?

5 Upvotes

CSS is funny sometimes. You can spend 20 minutes writing a layout, but then lose two hours trying to figure out why one element refuses to align properly.

Some particularly frustrating situations:

- Z-index not working because of a stacking context.

- Flexbox items refusing to stay aligned.

- A mysterious horizontal scrollbar appearing.

- position: absolute" breaking the entire layout.

- Margins collapsing unexpectedly.

- A media query fixing one screen size but breaking another.

- CSS animations behaving differently across browsers.

- An element overflowing its parent despite "width: 100%".

I'm curious:

What's a CSS bug that made you question your entire understanding of CSS?


r/redditdev • • 10d ago

Reddit API Why do subreddit listing .json URLs now hit a security block while signed in?

3 Upvotes

Subreddit listing JSON used to work for me in a signed-in browser, but it started failing recently. I can reproduce the difference by opening these paths directly in the address bar on www.reddit.com, in Chrome on macOS, without signing out or switching accounts:

  • /r/appletv/hot/ — the normal community page shows posts.
  • /r/appletv/hot.json?limit=50&raw_json=1 and /r/popular/hot.json?limit=50&raw_json=1 — both show Reddit’s “You’ve been blocked by network security” page instead of JSON.
  • /.json?feed=home&limit=50&raw_json=1 — returns a valid Listing with 50 entries in the same session.

OpenCLI #2771 reports HTTP 403 for the same community listing behavior; its fix improved error reporting but did not explain why Reddit refused the request. I know Reddit announced the end of unauthenticated .json access, but this happens while signed in.

Is this a known change to authenticated subreddit listings on www.reddit.com, or is there another explanation for why Home JSON and the normal community page work but the community listing doesn’t? If there’s an official announcement or a known issue, I’d appreciate a link.


r/redditdev • • 11d ago

Reddit API Submitted data access request a month ago and got no reply

6 Upvotes

I want search / read only access capability to reddit data. Willing to pay. Went through their data access request form, filled everything. That was about a month ago and except the initial auto reply- got nothing.
Are they still allowing payed read access? Is it hopeless?


r/redditdev • • 11d ago

General Botmanship How to find subreddits with more than 10k people in it. (only SFW)

0 Upvotes

It might not necessarily have to be a single step process. I am willing to do hard work, please suggest how can I achieve it?

I need it because I am going through a kind of crisis and I don't know what to do with my life. It has worked for me in the past. I have lots of free time. I want to explore subreddits, find like minded people and hopefully some meaning. I know it might sound stupid to you but it could work for me.


r/redditdev • • 13d ago

General Botmanship The main feature I'm going to miss from (so called) Data API is the ability to make ad-hoc queries.

19 Upvotes

So, I was cleaning up some AutoModerator rules that had banned/inactive/deleted accounts or stale posts.

Using the (so called) Data API makes that easy. Just put the username, do a POST to the API, and you get a result for the username (403/404 if the user is banned/deleted or the date of their last post or comment), or the date for the post. I did this manually this time, because I wanted to see what my experience would be. The answer is "not ideal", to say the least.

There's really no alternative to that with the Devvit API. And a lot of stuff becomes way to tedious to even consider. Reordering rules in the new "Automations" feature? Nope. Reordering mods so that active ones are the top and inactive on the bottom? Nope. Moving banned sites from one automation rule to the next? Nope. Extracting data from AutoModerator to inject into "Automations"? Nope. Adding a gazillion user flairs (flair templates) for each flag of the countries of the world and all the first-level admin divisions for countries of Europe? Also very much nope. (I've added more than 3 examples to confirm I'm not an AI 🙂)

Pigeonholing all the scripts I've ever written to "what does this bot do" isn't an interpretation that's based on reality. It's just that, pigeonholing the way we interacted with the Data API to serve the story that "you can migrate to the Devvit apps". And yes, my user is not a bot or an app because I use the API to run ad-hoc API calls to help with moderating the subreddits I'm a moderator for.

I don't even remember the stuff I have made that were once-off and could not be "migrated" to a "Devvit App". Some examples I can remember are live-changing a thread to reflect votes, some pseudo-contest I think on predicting the winner of the Greek elections more than 10 (maybe 15 years ago), and I even offered a Steam game as a prize, and of course an uncountable number of times I used the API to do ad-hoc mod actions, such as cleaning up AutoModerator rules.

This whole thing has been quite shortsighted and will definitely NOT yield the results that Reddit wants. Nor will the decision to login-gate reddit. AI companies won't stop scraping the site, and this won't even slow them down even a bit. From my limited experience with LLMs and scraping (from the other end), the LLM scraping bots don't even bother with APIs and all that fancy stuff anyway.

I'm not calling for action or anything. It is what it is. I disagree with the decision, I think it's misguided and ineffective, but if Reddit management sees fit to light a fire and burn down reddit, that's their own call.

That is all. Thanks for coming to my TED talk.


r/redditdev • • 13d ago

Reddit API Need a Client id

0 Upvotes

so with the new rules I am not able to get a client id for reddit API if someone is comfortable sharing theirs then please dm me I can explain the complete usecase to you in private


r/csshelp • • 25d ago

animation happening in series instead of parallel?

2 Upvotes

(edit - this is an issue specifically in safari. works properly in chrome.)

as far as i'm aware, the default behavior for css animation is to run everything in parallel. if that's the case, i'm completely confused why this is happening.

i have this css...

body {
	transition: color 0.3s ease-in;
}
.icon {
	transition:
		color 0.3s ease-in,
		border-color 0.3s ease-in,
		opacity 0.3s ease-in,
		background 0.03s ease-in;
}

but the color transition happens on the body followed by the color transition on the .icon elements.

there are no other transitions anywhere else in the css.

the colors for both are set in the css and not touched by javascript. the change is triggered by turning on or off a checkbox so it's purely css...

:root{
	--backgroundColor: hsla(var(--brandHue) 12% 9% / 1);
	--foregroundColor: hsla(var(--brandHue) 0% 100% / 0.8);
}
body:has(.mode:checked) {
	--backgroundColor: hsla(var(--brandHue) 12% 82% / 1);
	--foregroundColor: hsla(var(--brandHue) 0% 0% / 0.93);

}
body {
	background-color: var(--backgroundColor);
	color: var(--foregroundColor);
}

.icon has color: inherit and only changes when the body color changes. the other text on the page transitions first then the text with class .icon.

the desired behavior is for all text to change color simultaneously with a 0.3s transition.


r/redditdev • • 14d ago

Reddit API Help triggering automod comment with multiple keywords

Thumbnail
1 Upvotes

r/csshelp • • 26d ago

Request How to get rid of the massive gap over my chunk of text in a column?

1 Upvotes

I made the bg colour black so it would be more clearly differentiated. I made a few headings and gave them some individual attributes before putting them in an inline-block div. There's a gap over where the text first begins in the left column, and i have NO idea how to get rid of it. I'm a beginner, so any help would be appreciated! Also, if anyone knows how to get rid of the blue rim around the navigation bar at the top, that would be great too. thanks!

https://codepen.io/editor/issafizza/pen/01a19ca8-7846-70b4-925e-7174bb6b18f8

HTML: https://pastebin.com/raw/VZjC7M29

CSS: https://pastebin.com/raw/gKq8LtJD


r/redditdev • • 15d ago

PRAW My bot starting getting 403 errors today, it has begun

21 Upvotes

I got an email that my account was flagged for using automation, directing me to log in and create a passkey, shortly after I did that the 403 errors started. The end of an era. It’s been a fun ride sisters and brothers.


r/redditdev • • 15d ago

Reddit Announcement Data API migration reminder: register your apps and apply for migration funding by November 30

13 Upvotes

TL;DR: API access changes begin January 12, 2027, with remaining public API access ending in March 2027. Register your app, apply for the migration bounty program by November 30, 2026, and tell us what’s blocking your move. 

In our last update, we shared migration dates and the support available to help you move. We know migrating takes time and effort, especially for developers maintaining tools their communities use every day. We’re continuing to work with developers and moderators on those migrations and the gaps that still need attention.

Dates to keep in mind

Date What happens
October 31, 2026 The cutoff for new requests for public API access has passed.
November 30, 2026 Registration closes for the migration bounty program.
January 12, 2027 We begin removing API access for apps and users that haven’t registered or responded to our outreach. We’ll also share another migration update and reminder.
February 23, 2027 We’ll share another migration progress update and reminder.
March 2027 Remaining public API access ends.

With the funding registration deadline approaching, here’s what to do next, where to get help, and how to find alternatives for tools your community relies on:

Register your apps, even if you’re still figuring out the migration

If you build or maintain a Data API app or bot and haven’t registered it yet, start with the app registration form. This should only take a few minutes to complete!

You don’t need a completed migration plan to register. Tell us what your app does, which communities depend on it, and what capabilities or support you need to move. That helps us understand blockers and connect you with migration support.

Already registered? Start planning and testing your move using the Data API/PRAW → Devvit Migration Guide. Allow time to check that the migrated app meets the needs of the communities using it.

Apply through the app registration form for migration funding by November 30

Our $1M App Migration Program provides financial and technical support, including:

  • $1,000 payments for eligible apps that successfully migrate.
  • Additional support for critical moderation and community apps.
  • Migration guides and direct support.

The Developer Platform also offers free hosting, and ported apps may qualify for Reddit Developer Funds.

This is the funding registration deadline, so don’t wait until the January API access changes to apply. See the migration program post for more information and the program terms for eligibility details.

We’ll keep working through migration blockers and supporting the developers and communities making this move. If you need help, join us on r/Devvit or Discord, and tell us what’s getting in the way.

We’ll be in the comments to answer questions.


r/csshelp • • 26d ago

How to use CSS to replace (or appear to replace) text with a User's Input? (No JS)

2 Upvotes

I'm writing a reader-insert story and wanted to play around with the idea of allowing the reader to insert their own name directly from the story's page. The website I'm posting on doesn't (for obvious reasons) allow users to use JS, but HTML and CSS are supported. So I was thinking of doing something like:

Your name here: [Name]

"[John Doe] walked to the store." changes to "[Name] walked to the store."

Yes, I know there are extensions for what I'm asking for, but not everyone knows about them and trying to direct someone to install an extension is annoying for the reader. And yes, I know "it would be easier with JavaScript". ATP it's less about the story itself and more about solving this puzzle because not knowing is killing me.

I know it's possible in some form, I just don't know how to go about it. The way my brain has it structured is to have the CSS reference the code in the text box, so it would either change automatically (idk how that would work) or to have an "invisible checkbox workaround" to change the state of the name, but again I don't know how to tie the input to the CSS to go about it that way.


r/redditdev • • 18d ago

Reddit API Title: Devvit upload fails – TLS certificate hostname mismatch on Windows 11

0 Upvotes

Hello Devvit team,

I'm having trouble uploading my Devvit app. The app builds successfully, and all 7 WebView assets upload, but the final step of creating the app version fails.

Environment

  • OS: Windows 11
  • Devvit CLI: 0.15.2
  • App: travor-vince41
  • Reddit account: descriptionnice1378

Upload error:

Uploading new version "0.0.1" to Reddit... Error
Create failed after 3 attempts.
First error: fetch failed
Last error: fetch failed

Troubleshooting performed:

  1. Logged out and logged back into Devvit.
  2. Confirmed authentication using npx devvit whoami.
  3. Used npx devvit upload --copy-paste --verbose.
  4. Confirmed all 7 WebView assets uploaded successfully.
  5. Tested the API hostname using curl.
  6. Confirmed DNS resolution works.
  7. Tested using both my normal internet connection and a mobile hotspot.

The API hostname api.devvit-gateway.reddit.com consistently returns:

SEC_E_WRONG_PRINCIPAL (0x80090322)
The target principal name is incorrect.

However, developers.reddit.com responds with HTTP 200, and devvit-gateway.reddit.com responds with HTTP 405.

Could you investigate whether there is a TLS certificate or API gateway configuration issue affecting api.devvit-gateway.reddit.com?

Thank you.


r/csshelp • • Oct 29 '26

No scroll on landing page CSS not working

Thumbnail
1 Upvotes

r/redditdev • • 21d ago

General Botmanship Any way to get a list of subs a user posted on?

0 Upvotes

Is there a tool to get a list of all the subreddits my own account (not this one) posted on?


r/csshelp • • Oct 26 '26

Is asking for a css design here allowed?

0 Upvotes

r/redditdev • • 22d ago

General Botmanship What's the best FREE way to collect years of Reddit posts and comments from a specific subreddit?

7 Upvotes

IM DESPERATE

I'm hoping someone here with more experience can point me in the right direction because I've been going in circles trying to figure this out.

I'm working on a personal music discovery project. I want to search approximately five years of discussions in a particular subreddit and build a massive list of artists and bands that people have recommended over the years.

The biggest challenge is that I don't want to rely on Reddit's limited search results or just collect the most popular posts. I'm trying to dig as deep as possible, including older discussions, overlooked threads, obscure recommendations, and names buried in comment replies.

Ideally, I'd like to:

Search hundreds or thousands of historical threads using multiple keywords.

Retrieve complete comment sections, including nested replies.

Identify recommendation-related discussions while filtering out unrelated posts.

Export the collected information into CSV files for further processing.

Extract and deduplicate artist names to create one comprehensive list.

Here's what I've already tried:

I installed Python, PRAW, and Selenium on my Windows computer.

Unfortunately, Reddit requires API approval for my intended use, and my application was denied. I also tried Selenium with Firefox, but Reddit returned a network security block.

I've looked into a few open-source projects, but I'm unsure which ones are reliable or currently working.

What I'm looking for is a completely free solution that can handle a large amount of historical data. I don't mind letting a script run for several hours if necessary.

Has anyone successfully collected several years of Reddit posts and comments recently?

Are there any open-source tools, public Reddit archives, downloadable datasets, or other legitimate approaches you'd recommend?

I'm particularly interested in methods that can retrieve older discussions and their full comment trees rather than stopping after the first few hundred results.

This is strictly for personal music discovery, not commercial use or collecting personal information.

I'd really appreciate hearing what has actually worked for people rather than just theoretical suggestions.

Thanks in advance!


r/redditdev • • 23d ago

General Botmanship This subreddit is a hot mess

21 Upvotes

Can we please pivot away from or embrace two types of content:

1) How to gain PRAW access?

2) Here is my Devvit thing!

Currently these two completely offtopic post types make up 100% of the sub's feed.

Change the goals, brush up on rules, improve RegEx for replies and removal... I don't care what happens but this sub has 0% on topic discussion right now.