Version at: 24/11/2014, 00:29

#User scripts

##Overview
User scripts are relatively short pieces of code that can be installed, enabled, and disabled by individual users in order to modify the behavior of the Tatoeba user interface. These scripts can serve an important role in streamlining tasks that you do frequently and adding functionality that has not yet been incorporated into the main codebase. Some scripts require editing for customization. They require an add-on to work with a browser.

##Add-ons
On Mozilla Firefox, Greasemonkey is required to run user scripts. Visit the [Greasemonkey add-on page](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) to install Greasemonkey. The [userscripts.org Greasemonkey guide](http://userscripts.org/about/installing) provides additional information. 

On Google Chrome, [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) serves the same purpose.

See the [Wikipedia page on Greasemonkey](https://en.wikipedia.org/wiki/Greasemonkey) for add-ons for other browsers.

##Finding scripts
At the moment, the best way of finding a current, comprehensive list of Tatoeba-related scripts is to search the website [userscripts.org](http://userscripts.org) for [scripts tagged "Tatoeba"](http://userscripts.org/scripts/search?q=Tatoeba&submit=Search). To see a discussion of individual scripts, see the next section.

Also see [a4esl.com/temporary/tatoeba/userscripts/](http://a4esl.com/temporary/tatoeba/userscripts/)
(Someone should eventually add all of these to these page.)

##Description of selected scripts

 - [Tatoeba Default Languages](http://userscripts.org/scripts/show/152983) (author: FlamingTofu) moves your desired languages to the top of the language drop-down lists. You need to edit the script once to list the languages you desire.

 - [Tatoeba Search Language Switcher](http://userscripts.org/scripts/show/151698) (author: Pandark) replaces the single-headed arrow between the two language fields at the top of the screen with a double-headed arrow. Clicking on the double-headed arrow swaps the values in the "From" and "To" fields. The script does not require any editing.

 - [Tatoeba Sentence Timeline](http://userscripts.org/scripts/show/121207) (author: jakov, known as jakovo at userscripts.org) places log entries and tags chronologically between the comments on a sentence. The script does not require any editing. **_WARNING: The current version of the script interferes with comments as they are now displayed._** 

 - [Tatoeba Symbol Insert Helper](http://userscripts.org/scripts/show/102000) (author: jakov/jakovo) adds links for inserting special characters into the Tatoeba translation boxes. It can optionally be edited in order to remove unwanted character sets from the list, add new ones to the list, or modify the order in which they appear.

- [htmlTatoebaQuiz](http://userscripts.org/scripts/show/170945) (author: marcelostockle/Marcelo Stöckle) quizzes the user. It uses Tatoeba's "light" view (tatoeba.org/s/s/*sentence_number*).

- [Tatoeba Suggest Tags of Siblings](http://userscripts.org/scripts/show/104647) (author: jakov/jakovo) lists the tags which have already been added to direct translations (in green, like: ![][7]) and indirect translations (in grey, like: ![][8]), so that you can easily pick one for the active sentence. When you hover on a tag added to the active sentence, it also makes it possible to see the **name** of the contributor who added it. For tags added to direct and indirect translations, hovering will highlight the related sentence. Similarly hovering on a sentence number in the logs will highlight the sentence with this ID. The script will add a control panel on your profile for determining preferences.

##Making requests
For the time being, place requests involving creation or modification of scripts on the page [User script requests](user-script-requests). Eventually, we can use a more sophisticated tracking system.

  [1]: http://imageshack.us/a/img687/5684/cartmd.png
  [2]: http://imageshack.us/a/img580/4288/linkpr.png
  [3]: http://imageshack.us/a/img201/3862/manqn.png
  [4]: http://imageshack.us/a/img14/3164/looklh.png
  [5]: http://imageshack.us/a/img713/1825/removeu.png
  [6]: http://imageshack.us/a/img24/2804/spx8.png
  [7]: http://imageshack.us/a/img62/9312/gefo.png

version at: 08/12/2019, 15:46

#User scripts

##Overview
User scripts are relatively short pieces of code that can be installed, enabled, and disabled by individual users in order to modify the behavior of the Tatoeba user interface. These scripts can serve an important role in streamlining tasks that you do frequently and adding functionality that has not yet been incorporated into the main codebase. Some scripts require editing for customization. They require an add-on to work with a browser.

##Add-ons
On Mozilla Firefox, Greasemonkey is required to run user scripts. Visit the [Greasemonkey add-on page](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) to install Greasemonkey. The [userscripts.org Greasemonkey guide](http://userscripts.org/about/installing) provides additional information. 

On Google Chrome, [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) serves the same purpose.

See the [Wikipedia page on Greasemonkey](https://en.wikipedia.org/wiki/Greasemonkey) for add-ons for other browsers.

##Finding scripts
At the moment, the best way of finding a current, comprehensive list of Tatoeba-related scripts is to search the website [userscripts.org](http://userscripts.org) for [scripts tagged "Tatoeba"](http://userscripts.org/scripts/search?q=Tatoeba&submit=Search). To see a discussion of individual scripts, see the next section.

Also see [a4esl.com/temporary/tatoeba/userscripts/](http://a4esl.com/temporary/tatoeba/userscripts/)
(Someone should eventually add all of these to these page.)

##Description of selected scripts

 - [Tatoeba Default Languages](http://userscripts.org/scripts/show/152983) (author: FlamingTofu) moves your desired languages to the top of the language drop-down lists. You need to edit the script once to list the languages you desire.

 - [Tatoeba Search Language Switcher](http://userscripts.org/scripts/show/151698) (author: Pandark) replaces the single-headed arrow between the two language fields at the top of the screen with a double-headed arrow. Clicking on the double-headed arrow swaps the values in the "From" and "To" fields. The script does not require any editing.

 - [Tatoeba Sentence Timeline](http://userscripts.org/scripts/show/121207) (author: jakov, known as jakovo at userscripts.org) places log entries and tags chronologically between the comments on a sentence. The script does not require any editing. **_WARNING: The current version of the script interferes with comments as they are now displayed._** 

 - [Tatoeba Symbol Insert Helper](http://userscripts.org/scripts/show/102000) (author: jakov/jakovo) adds links for inserting special characters into the Tatoeba translation boxes. It can optionally be edited in order to remove unwanted character sets from the list, add new ones to the list, or modify the order in which they appear.

- [htmlTatoebaQuiz](http://userscripts.org/scripts/show/170945) (author: marcelostockle/Marcelo Stöckle) quizzes the user. It uses Tatoeba's "light" view (tatoeba.org/s/s/*sentence_number*).

- [Tatoeba Suggest Tags of Siblings](http://userscripts.org/scripts/show/104647) (author: jakov/jakovo) lists the tags which have already been added to direct translations (in green, like: ![][7]) and indirect translations (in grey, like: ![][8]), so that you can easily pick one for the active sentence. When you hover on a tag added to the active sentence, it also makes it possible to see the **name** of the contributor who added it. For tags added to direct and indirect translations, hovering will highlight the related sentence. Similarly hovering on a sentence number in the logs will highlight the sentence with this ID. The script will add a control panel on your profile for determining preferences.

##Making requests
For the time being, place requests involving creation or modification of scripts on the page [User script requests](user-script-requests). Eventually, we can use a more sophisticated tracking system.!["Add an Image" button][8]

  [1]: http://imageshack.us/a/img687/5684/cartmd.png
  [2]: http://imageshack.us/a/img580/4288/linkpr.png
  [3]: http://imageshack.us/a/img201/3862/manqn.png
  [4]: http://imageshack.us/a/img14/3164/looklh.png
  [5]: http://imageshack.us/a/img713/1825/removeu.png
  [6]: http://imageshack.us/a/img24/2804/spx8.png
  [7]: http://imageshack.us/a/img62/9312/gefo.png
  [8]: http://

Note

The lines in green are the lines that have been added in the new version. The lines in red are those that have been removed.