Version at: 29/04/2014, 22:28 vs. version at: 29/04/2014, 22:31
11#List of Tatoeba bookmarklets
22
33See [Bookmarklets](bookmarklets) for an introduction to bookmarklets, including instructions for installing them.
44
55The first two bookmarklets below will accept either sentence numbers (for example, "1000000") or sentence URLs (for example, "http://tatoeba.org/eng/sentences/show/1000000"). To get the URL of a sentence, right-click on a link to it and select "Copy Link Location" (or its equivalent in your browser).
66
77## * "Link To This Sentence"
88
99The following bookmarklet will let you link the sentence on the current page to any other sentence by copying the latter's number or URL into a field.
1010The text of the bookmarklet follows:
1111
12[Link To This Sentence](javascript:var%20a=window.prompt%28"Enter%20the%20URL%20or%20number%20of%20the%20sentence%20to%20link%20to%20this%20one",""%29;if%28a!=null%29{var%20t=/%28http:\/\/tatoeba.org\/[a-z]{3}\/sentences\/show\/%29?%28[1-9][0-9]*%29/;var%20r=a.match%28t%29;if%28r!=null%29{var%20an=r[2];location.href=location.href.replace%28"sentences/show","links/add"%29+"/"+an};})
12[Link To This Sentence](javascript:var%20a=window.prompt%28"Enter%20the%20URL%20or%20number%20of%20the%20sentence%20to%20link%20to%20this%20one",""%29;if%28a!=null%29{var%20t=/%28http:\/\/tatoeba.org\/%5Ba-z%5D{3}\/sentences\/show\/%29?%28%5B1-9%5D%5B0-9%5D*%29/;var%20r=a.match%28t%29;if%28r!=null%29{var%20an=r%5B2%5D;location.href=location.href.replace%28"sentences/show","links/add"%29+"/"+an};})
1313
1414javascript:var%20u%20=%20"";var%20e=window.prompt\("Enter%20URL%20or%20number%20of%20sentence%20to%20link%20to%20this%20one",""\);if\(e!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20em=e.match\(r\);if\(em!=null\){var%20h=location.href;var%20hm=h.match\(r\);u=hm\[1\]+"links/add/"+hm\[3\]+"/"+em\[3\];location.href=u;}else{alert\("Invalid%20input."\)};}
1515
1616Note: copy these strings (and others on this page) from the text as displayed, not from the markdown text that you see when you edit this wiki page. Characters that are given special interpretation by this wiki's markdown have been escaped above.
1717
1818Author: AlanF_US, based on a bookmarklet by Zifre
1919
2020## * "Link 2 Sentences"
2121
2222The following bookmarklet will let you link any two sentences by copying their numbers or URLs into fields. It does not require you to be on a page that shows one of the sentences. However, you need to enter the numbers or URLs of both sentences. The text of the bookmarklet follows:
2323
2424javascript:var%20u="";function%20err\(\){alert\("Invalid%20input."\);}var%20ep="Enter%20URL%20or%20number%20of%20";var%20sp="%20sentence";var%20s0=window.prompt\(ep+"first"+sp,""\);if\(s0!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20m0=s0.match\(r\);if\(m0!=null\){var%20s1=window.prompt\(ep+"second"+sp,""\);if\(s1!=null\){var%20m1=s1.match\(r\);if\(m1!=null\){u="htt"+"p:/"+"/"+"tatoeba.org/eng/links/add/"+m0\[3\]+"/"+m1\[3\];location.href=u;}else{err\(\);}}}else{err\(\);}}
2525
2626Author: AlanF_US, based on a bookmarklet by Zifre
2727
2828## * "Go to Random Page of Untranslated Sentences"
2929
3030The following bookmarklet takes you to a random page between 1 and 100 (inclusive) of results from a search for all Esperanto sentences not translated into English. Here's a link that you can drag and drop into your browser's bookmark toolbar:
3131
3232[Random Page of Untranslated Sentences](javascript:var%20p=Math.floor%28%28Math.random%28%29*100%29+1%29;location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;)
3333
3434The content follows:
3535
3636javascript:var%20p=Math.floor((Math.random()*100)+1);location.href="htt"+"p://t"+"atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:"+p;
3737
3838* To change the source language, edit the string "epo".
3939* To change the destination language, edit the string "eng".
4040* To change the minimum page number, edit the string "1".
4141* To change the maximum page number, edit the string "100".
4242
4343
4444
4545Author: AlanF_US
4646
4747:::
4848
4949
5050
5151 [1]:
5252javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;
5353
diff view generated by jsdifflib

Version at: 29/04/2014, 22:28

#List of Tatoeba bookmarklets

See [Bookmarklets](bookmarklets) for an introduction to bookmarklets, including instructions for installing them.

The first two bookmarklets below will accept either sentence numbers (for example, "1000000") or sentence URLs (for example, "http://tatoeba.org/eng/sentences/show/1000000"). To get the URL of a sentence, right-click on a link to it and select "Copy Link Location" (or its equivalent in your browser).

## * "Link To This Sentence"

The following bookmarklet will let you link the sentence on the current page to any other sentence by copying the latter's number or URL into a field.
The text of the bookmarklet follows:

[Link To This Sentence](javascript:var%20a=window.prompt%28"Enter%20the%20URL%20or%20number%20of%20the%20sentence%20to%20link%20to%20this%20one",""%29;if%28a!=null%29{var%20t=/%28http:\/\/tatoeba.org\/[a-z]{3}\/sentences\/show\/%29?%28[1-9][0-9]*%29/;var%20r=a.match%28t%29;if%28r!=null%29{var%20an=r[2];location.href=location.href.replace%28"sentences/show","links/add"%29+"/"+an};})

javascript:var%20u%20=%20"";var%20e=window.prompt\("Enter%20URL%20or%20number%20of%20sentence%20to%20link%20to%20this%20one",""\);if\(e!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20em=e.match\(r\);if\(em!=null\){var%20h=location.href;var%20hm=h.match\(r\);u=hm\[1\]+"links/add/"+hm\[3\]+"/"+em\[3\];location.href=u;}else{alert\("Invalid%20input."\)};}

Note: copy these strings (and others on this page) from the text as displayed, not from the markdown text that you see when you edit this wiki page. Characters that are given special interpretation by this wiki's markdown have been escaped above.

Author: AlanF_US, based on a bookmarklet by Zifre

## * "Link 2 Sentences"

The following bookmarklet will let you link any two sentences by copying their numbers or URLs into fields. It does not require you to be on a page that shows one of the sentences. However, you need to enter the numbers or URLs of both sentences. The text of the bookmarklet follows:

javascript:var%20u="";function%20err\(\){alert\("Invalid%20input."\);}var%20ep="Enter%20URL%20or%20number%20of%20";var%20sp="%20sentence";var%20s0=window.prompt\(ep+"first"+sp,""\);if\(s0!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20m0=s0.match\(r\);if\(m0!=null\){var%20s1=window.prompt\(ep+"second"+sp,""\);if\(s1!=null\){var%20m1=s1.match\(r\);if\(m1!=null\){u="htt"+"p:/"+"/"+"tatoeba.org/eng/links/add/"+m0\[3\]+"/"+m1\[3\];location.href=u;}else{err\(\);}}}else{err\(\);}}

Author: AlanF_US, based on a bookmarklet by Zifre

## * "Go to Random Page of Untranslated Sentences"

The following bookmarklet takes you to a random page between 1 and 100 (inclusive) of results from a search for all Esperanto sentences not translated into English. Here's a link that you can drag and drop into your browser's bookmark toolbar:

[Random Page of Untranslated Sentences](javascript:var%20p=Math.floor%28%28Math.random%28%29*100%29+1%29;location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;)

The content follows:

javascript:var%20p=Math.floor((Math.random()*100)+1);location.href="htt"+"p://t"+"atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:"+p;

* To change the source language, edit the string "epo". 
* To change the destination language, edit the string "eng". 
* To change the minimum page number, edit the string "1".
* To change the maximum page number, edit the string "100".



Author: AlanF_US

:::



  [1]: 
javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;

version at: 29/04/2014, 22:31

#List of Tatoeba bookmarklets

See [Bookmarklets](bookmarklets) for an introduction to bookmarklets, including instructions for installing them.

The first two bookmarklets below will accept either sentence numbers (for example, "1000000") or sentence URLs (for example, "http://tatoeba.org/eng/sentences/show/1000000"). To get the URL of a sentence, right-click on a link to it and select "Copy Link Location" (or its equivalent in your browser).

## * "Link To This Sentence"

The following bookmarklet will let you link the sentence on the current page to any other sentence by copying the latter's number or URL into a field.
The text of the bookmarklet follows:

[Link To This Sentence](javascript:var%20a=window.prompt%28"Enter%20the%20URL%20or%20number%20of%20the%20sentence%20to%20link%20to%20this%20one",""%29;if%28a!=null%29{var%20t=/%28http:\/\/tatoeba.org\/%5Ba-z%5D{3}\/sentences\/show\/%29?%28%5B1-9%5D%5B0-9%5D*%29/;var%20r=a.match%28t%29;if%28r!=null%29{var%20an=r%5B2%5D;location.href=location.href.replace%28"sentences/show","links/add"%29+"/"+an};})

javascript:var%20u%20=%20"";var%20e=window.prompt\("Enter%20URL%20or%20number%20of%20sentence%20to%20link%20to%20this%20one",""\);if\(e!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20em=e.match\(r\);if\(em!=null\){var%20h=location.href;var%20hm=h.match\(r\);u=hm\[1\]+"links/add/"+hm\[3\]+"/"+em\[3\];location.href=u;}else{alert\("Invalid%20input."\)};}

Note: copy these strings (and others on this page) from the text as displayed, not from the markdown text that you see when you edit this wiki page. Characters that are given special interpretation by this wiki's markdown have been escaped above.

Author: AlanF_US, based on a bookmarklet by Zifre

## * "Link 2 Sentences"

The following bookmarklet will let you link any two sentences by copying their numbers or URLs into fields. It does not require you to be on a page that shows one of the sentences. However, you need to enter the numbers or URLs of both sentences. The text of the bookmarklet follows:

javascript:var%20u="";function%20err\(\){alert\("Invalid%20input."\);}var%20ep="Enter%20URL%20or%20number%20of%20";var%20sp="%20sentence";var%20s0=window.prompt\(ep+"first"+sp,""\);if\(s0!=null\){var%20r=/\(http:\\/\\/\[^\\/\]+\\/\[a-z\]{3}\\/\)?\(sentences\\/show\\/\)?\(\[1-9\]\[0-9\]\*\)\(#.\*\)?/;var%20m0=s0.match\(r\);if\(m0!=null\){var%20s1=window.prompt\(ep+"second"+sp,""\);if\(s1!=null\){var%20m1=s1.match\(r\);if\(m1!=null\){u="htt"+"p:/"+"/"+"tatoeba.org/eng/links/add/"+m0\[3\]+"/"+m1\[3\];location.href=u;}else{err\(\);}}}else{err\(\);}}

Author: AlanF_US, based on a bookmarklet by Zifre

## * "Go to Random Page of Untranslated Sentences"

The following bookmarklet takes you to a random page between 1 and 100 (inclusive) of results from a search for all Esperanto sentences not translated into English. Here's a link that you can drag and drop into your browser's bookmark toolbar:

[Random Page of Untranslated Sentences](javascript:var%20p=Math.floor%28%28Math.random%28%29*100%29+1%29;location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;)

The content follows:

javascript:var%20p=Math.floor((Math.random()*100)+1);location.href="htt"+"p://t"+"atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:"+p;

* To change the source language, edit the string "epo". 
* To change the destination language, edit the string "eng". 
* To change the minimum page number, edit the string "1".
* To change the maximum page number, edit the string "100".



Author: AlanF_US

:::



  [1]: 
javascript:var%20p=Math.floor((Math.random()*100)+1);location.href=%22htt%22+%22p://t%22+%22atoeba.org/eng/sentences/show_all_in/epo/und/eng/indifferent/page:%22+p;

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.