Skip to content

Instantly share code, notes, and snippets.

@PaSaSaP
Created August 18, 2023 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaSaSaP/adb2af0dc062c743e6a8e30d5237f5b3 to your computer and use it in GitHub Desktop.
Save PaSaSaP/adb2af0dc062c743e6a8e30d5237f5b3 to your computer and use it in GitHub Desktop.
How to put "Translate Selected Text" by S3.Translator within context menu to the top?

Follow that tutorial

userChrome.css should look like:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#s3_translator-menuitem-_translate_selection { order: -1; }

But why?

For some security reasons S3.Translator does not work in 100% within reader mode so to make translating text easier (because of that one function works in reader mode...) Translate Selectedt Text menu item is at the top of that menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment