Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to set default browsing settings ? #633

Open
SpaghettiMonkey opened this issue Feb 1, 2024 · 2 comments
Open

Is there any way to set default browsing settings ? #633

SpaghettiMonkey opened this issue Feb 1, 2024 · 2 comments

Comments

@SpaghettiMonkey
Copy link

I'm always using the dark theme and post flow features, and each time I start my instance I have to toggle these in the settings page. Is there any way to set these on by default ?

@G1org1owo
Copy link

As mentioned in #561, you can edit the default settings in client/js/model/settings.js. If I got it right, to achieve what you're looking for you should change darkTheme and postFlow to true.

Don't forget you have to manually build the client if you edit the source code instead of using the base docker image.

@mrskizzex
Copy link

You can modify the minified js in the image to change defaults.
image

rename gz file to gz.old and use vi to modify app.min.js
setting this part like this:
{listPosts:{safe:1,sketchy:1,unsafe:1},upscaleSmallPosts:1,endlessScroll:1,keyboardShortcuts:1,transparencyGrid:0,fitMode:"fit-both",tagSuggestions:0,autoplayVideos:1,postsPerPage:50,tagUnderscoresAsSpaces:0,darkTheme:1,postFlow:1}
results in:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants