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

How i can remove hidden files button #212

Closed
LfJohnVo opened this issue Nov 17, 2020 · 7 comments
Closed

How i can remove hidden files button #212

LfJohnVo opened this issue Nov 17, 2020 · 7 comments

Comments

@LfJohnVo
Copy link

image

@LfJohnVo
Copy link
Author

How i can remove?

@LfJohnVo
Copy link
Author

Can you help me?

@vahidalvandi
Copy link

How i can remove?

xx

@mansoorkhan96
Copy link

How i can remove?

To remove this button, You need to edit the file-manager.js and remove the code for this button.

@BRAiNCHiLD95
Copy link

@LfJohnVo

The easiest fix is to remove it via Javascript immediately after the file manager is loaded. If you do it properly, the button will be visible for less than a second.

A jQuery example -
// This will remove the Hidden files button.
$(document).find('div.fm').find('.fm-navbar').find('button[title=" Hidden files"]').remove();

If you don't use jQuery, you can very easily recreate this in JS (using document.querySelector() ).

Note the space before " Hidden" - you need that. It's actually a small typo on the internal code for the project. So you could do 2 lines, one with the space, and one without - and in the future - if the typo gets fixed, you're still good to go!

A harder (to maintain) fix is editing file-manager.js - because when the package gets updated, you'll have to redo everything you did to the already obfuscated & minified js file.

@daydevelops
Copy link

Using CSS:

button[title=' Hidden files'] {
    display:none;
}

@LfJohnVo
Copy link
Author

Using CSS:

button[title=' Hidden files'] {
    display:none;
}

Awesome!

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

5 participants