You are only browsing one thread in the discussion! All comments are available on the post page.

Return

melonpunk ,
@melonpunk@lemmy.world avatar

This will hide the button from display so it cannot be clicked on.

document.querySelector(“[data-tippy-content=‘upload image’]”).style.display = “none”;

utopify_org OP ,
@utopify_org@lemmy.ml avatar

What exactly should I do with this command? Where should I put it in?

melonpunk ,
@melonpunk@lemmy.world avatar

To test it you can just put it into the browser console (F12), but adding it to an instance will require it to be added to a javascript file that’s loaded and run on page open.

It’s not the most ideal way of removing the feature, but it depends on what you’re needing your instance to do. If it’s just a personal instance, then I guess you could just run this line via a browser extension such as Greasemonkey, which would remove it in your client browser (not on the instance itself).

utopify_org OP ,
@utopify_org@lemmy.ml avatar

No, it will be a public instance. If it would be a private instance, I would trust myself to not upload illegal content :D

But there exactly do you put this file in?

I have the docker container running and can access it, but I don’t know which file should be edited to do this?

WhoRoger ,
@WhoRoger@lemmy.world avatar

You know, people will still be able to use apps like Jerboa, or alternative frontends, and not even know you disabled the button on one frontend.

You either need to disable the functionality altogether, or honestly not run a public instance if you can’t offer pretty essential things like image upload.

utopify_org OP ,
@utopify_org@lemmy.ml avatar

I know that it will still work with another frontend, but at least people on my site will not use it anymore and if people don’t even know how to remove the cosmetics of an instance, do you really think it’s a good idea to ask how to remove the functionality?

But if you know it, can you please tell me how to disable image uploads on an instance?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines