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 have the inlining and Image hover features turned on by default? #770

Open
zukong111 opened this issue Jun 30, 2024 · 3 comments

Comments

@zukong111
Copy link

Capture
It's very convenient if you can turn it on by default, no need to go to option to turn it on again.

@crazy4cars69
Copy link

Look into this file, it allows to tweak some js scripts

@zukong111
Copy link
Author

zukong111 commented Jul 7, 2024

Look into this file, it allows to tweak some js scripts

Honestly I still don't get it, I'm a javascript rookie.How to combine settings.js and image-hover.js?

@perdedora
Copy link
Member

For image hover, edit these three values to true. And for inline just follow the same logic: if value doesn't exist on localStorage, set to true.

vichan/js/image-hover.js

Lines 26 to 30 in db20a35

if (!localStorage.imageHover || !localStorage.catalogImageHover || !localStorage.imageHoverFollowCursor) {
localStorage.imageHover = 'false';
localStorage.catalogImageHover = 'false';
localStorage.imageHoverFollowCursor = 'false';
}

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