Version at: 05/01/2014, 16:17 vs. version at: 05/01/2014, 19:50
11##Description of Tatoeba bookmarklets
22
33Both of these bookmarklets 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).
44
55##*** *"Link To This Sentence"*
66
77The 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:
88
99javascript: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.")};}
1010
11Author: AlanF_US, based on a bookmarklet by Zifre
1112
1213##*** *"Link 2 Sentences"*
1314
1415The 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:
1516
1617javascript: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();}}
1718
19Author: AlanF_US, based on a bookmarklet by Zifre
1820
21##*** *"Go to Random Page of Untranslated Sentences"*
1922
20The bookmarklets on this page were written by AlanF_US, based on one written by Zifre.
23The 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:
24
25javascript:var%20p=Math.floor((Math.random()*100)+1);location.href="htt"+"p://t"+"atoeba.org/eng/sentences/show_all_in/esp/und/eng/indifferent/page:"+p;
26
27* To change the source language, edit the string "esp".
28* To change the destination language, edit the string "eng".
29* To change the minimum page number, edit the string "1".
30* To change the maximum page number, edit the string "100".
diff view generated by jsdifflib

Version at: 05/01/2014, 16:17

##Description of Tatoeba bookmarklets

Both of these bookmarklets 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:

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.")};}


##*** *"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();}}



The bookmarklets on this page were written by AlanF_US, based on one written by Zifre.

version at: 05/01/2014, 19:50

##Description of Tatoeba bookmarklets

Both of these bookmarklets 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:

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.")};}

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:

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

* To change the source language, edit the string "esp". 
* 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".

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.