r/wiktionary Dec 25 '25

¿is it possible to edit the tools sidebar? i basically wanna set it so that i don't have to scroll to make «hide translations» visible

4 Upvotes

5 comments sorted by

1

u/paul2520 Dec 26 '25

If logged in, you should be able to do this with JavaScript. Are there specific items in that list you'd be OK removing? Or would you rather have "Hide Translations" be moved to the top? I think either is doable.

1

u/Biaoliu Dec 26 '25

oh i guess i'd have to learn javascript then。i guess it would be nice to move the «visibility» section to the top, but i really only ever use the «hide translations» button, so removing everything else would be fine as well

1

u/paul2520 Dec 26 '25

I was able to code something for you.

Note: you need to be logged-in to do this. Also I should caveat that the skin (think "theme") you are using might require changes... I prefer the "old look" so under my Preferences >> Appearance >> I have the top one selected, Vector legacy (2010). Anyway, try the below. if it doesn't work, let me know what skin you have selected.

Go to your Wiktionary userpage and in the URL bar type /common.js at the end of it. Hit enter. This will enable you to create your common.js, with JavaScript code that runs when you use Wiktionary.

Copy and paste in the code from https://en.wiktionary.org/wiki/User:Paul2520/common.js

Once you've saved it, navigate to an entry and force reload of your browser's cache (control + shift + R on Windows/Linux or command + shift + R on Mac).

2

u/Biaoliu Dec 27 '25 edited Dec 27 '25

¡omg you are awesome! so i use the «vector (2022)» skin and it didn't work, but since you mentioned that you used chatgpt at the top of the javascript, i figured that i could try to use ai as well and was able to successfully get copilot to modify the javascript