AutoUserBGs

by 0J3

AutoUserBGs

Have your own "user background" on BD/Powercord without the need to wait for approval.

Introduction

AutoUserBGs (also refrenced as: aubg,aubgs,autousrbgs) is a Pure CSS Database, similar to usrbg by Tropical#4355, of user-selected backgrounds. The difference being, no-one needs to approve a background for it to be added.

Why AutoUsrBGs?

AUBG does not require you to wait to get a user background added/updated.

Examples

EXAMPLE1
EXAMPLE2

How do I install AutoUsrBGs?

On Bandagedbd,...

  1. Download the .theme.css file by going here and pressing ctrl+s
  2. Open your User Settings on Discord
  3. Click Themes
  4. Click Open Themes Folder
  5. Move the file you downloaded in the opened folder
On PowerCord,...
  1. Download the .zip file by going here and pressing ctrl+s
  2. Install a theme however you otherwise would, using the folder inside of the zip

How do I setup my own background?

Just click the link here and follow the instructions there.

Why do you ask for email permissions?

I need to tell discord i need it, so discord tells me if it's verified or not. I will be using that in the future to prevent non-verified accounts. I do not keep your email address anywhere on my server.
If you want to confirm that claim yourself, this whole site's source code, inclusive the part that would be able to save said email, can be found here and here.

Restrictions

  1. If you post any form of explicit content, your background will be removed without warning, and your UserID will be blocked from submitting further backgrounds.
  2. If you upload userbgs for more than 5 of your own accounts, they will all be removed.

(Theme Creators) How do I import it into my own theme?

There are 3 methods:

  1. Import the variables and automatically add the user background

    To do this, add @import url('https://aubg.nora.lgbt/api/bd'); to the beginning of your theme file (even for Powercord themes)
    Please note that this will NOT work if you use a custom background system (and get rid of the default one)
  2. Import the variables from AutoUserBGs and from Aurora's legacy background variable list

    To do this, add @import url('https://0j3-2.github.io/AutoUserBGs/publicvars.css'); to the beginning of your theme file
  3. Import the variables from only AutoUserBGs

    To do this, add @import url('https://aubg.nora.lgbt/vars.css'); to the beginning of your theme file

(Theme Creators) Do I need to import UsrBGs aswell?

No. AutoUsrBGs' Variables importer file already imports it for you.

(Developers) How do I get a JSON list of user-settings?

Fetch https://aubg.nora.lgbt/api/vars.json, parse it as JSON, and loop over every entry. Each key is a userid, and the value is an array of data. The key within that value, that you likely are interested in, is banner. It is the same string inputted here.
Note: You cannot request this from the browser using fetch(), as there is an issue with CORS. You can, instead, have a proxy server to proxy to that file.
Node-fetch/Axios/etc... can still get the file just fine.

(Developers) How do I get a specific user's background, without getting all users' backgrounds?

Same thing as before, just this time the link is https://aubg.nora.lgbt/api/getBanner/:UserId.
Click the link to see how the response looks like.