FamilySearch Family Tree Bookmarklets: Difference between revisions
Flominator (talk | contribs) (a beginning, maybe it helps somebody) |
Flominator (talk | contribs) No edit summary |
||
Line 31: | Line 31: | ||
# A merge site for the two people will show up | # A merge site for the two people will show up | ||
Bonus: if you are on a merge page already, it will also submit the existing merge (you have to change the text after <code>button_text=</code> to your language version of the submit button with which you finally merge people in your language version | Bonus: if you are on a merge page already, it will also submit the existing merge (you have to change the text after <code>button_text=</code> to your language version of the submit button with which you finally merge people in your language version (for German it would be 'Verschmelzung abschlie%C3%9Fen') | ||
<code><nowiki>javascript:var kill = prompt('ID of person to be removed').trim(); var keep = window.getSelection().toString().trim(); var button_text = 'Finish Merge'; var merge_window = window.open( 'https://www.familysearch.org/tree/merge/'+keep+'/other-person/' +kill); if(window.location.toString().indexOf('merge')!=-1) { submitMergePage(); } function submitMergePage() { var inputs = document.getElementsByTagName('input'); for(var i=0;i<inputs.length;i++) { if (inputs[i].type=='submit' && inputs[i].value==button_text) { inputs[i].click(); } } }</nowiki></code> | |||
<code><nowiki>javascript:var kill = prompt(' | |||
== Source linker == | == Source linker == |
Revision as of 15:20, 1 June 2018
Bookmarklets are small pieces of javascript code that are saved as Bookmarks in your web browser. For details about the concept, see the Wikipedia article about bookmarklets.
Here are some bookmarklets that might enhance your user experience on FamilySearch, by creating shortcuts for repetitive actions that take a little longer when are done conventionally. The bookmarklets were written by FamilySearch users like Flominator (talk) and are not officially tested and/or approved by FamilySearch. All are supposed to work with Google Chrome v49. Usage is at your own risk.
In order to use them, just store them as bookmarks in your browser and call them by clicking them while being on FamilySearch.
Possible duplicates[edit | edit source]
Usage: Click the bookmark while being on a person's page in FamilySearch in order to see the list of potential duplicates Advantage: On slower internet connections you don't need to wait until the whole page is loaded, you just need to see the person's name in the title bar.
javascript: var urlParts = window.location.pathname.toString().split("/"); var personId = urlParts[urlParts.length-1]; window.location = "https://www.familysearch.org/tree/person/possible-duplicates/" + personId;
Research help[edit | edit source]
Same as #Possible duplicates for research hints:
javascript: var urlParts = window.location.pathname.toString().split("/"); var personId = urlParts[urlParts.length-1]; window.location = "https://www.familysearch.org/tree/person/research-help/" + personId;
Add source[edit | edit source]
Same as #Possible duplicates for adding sources from your collection:
javascript: var urlParts = window.location.pathname.toString().split("/"); var personId = urlParts[urlParts.length-1]; window.location = "https://www.familysearch.org/links-pages/sourceBox?entityType=person&referrer=" + window.location + "&showPhotos=true&entityId="+ personId;
Merging people[edit | edit source]
Usage:
- Copy ID the person that you want to delete after merging (the right side)
- Select the ID of the person you want to keep
- Start the bookmarklet
- Paste the copied ID into the dialog that pops up
- A merge site for the two people will show up
Bonus: if you are on a merge page already, it will also submit the existing merge (you have to change the text after button_text=
to your language version of the submit button with which you finally merge people in your language version (for German it would be 'Verschmelzung abschlie%C3%9Fen')
javascript:var kill = prompt('ID of person to be removed').trim(); var keep = window.getSelection().toString().trim(); var button_text = 'Finish Merge'; var merge_window = window.open( 'https://www.familysearch.org/tree/merge/'+keep+'/other-person/' +kill); if(window.location.toString().indexOf('merge')!=-1) { submitMergePage(); } function submitMergePage() { var inputs = document.getElementsByTagName('input'); for(var i=0;i<inputs.length;i++) { if (inputs[i].type=='submit' && inputs[i].value==button_text) { inputs[i].click(); } } }
Source linker[edit | edit source]
Opens all research hints each in a new window.
Usage:
- Open a research hints page
- Click the bookmarklet
- Copy the URL list that appears on top of the page
- Paste it into the dialog created by the Bulk URL Opener Extension or anything similiar
javascript: var new_window_text =""; var alert_text =""; var inputs = document.getElementsByTagName('a'); for(var i=0;i<inputs.length;i++) { if (inputs[i].href.toString().indexOf('linker')!=-1) { new_window_text+=inputs[i].href+"<br>"; alert_text+=inputs[i].href+"\n"; } } var vl_logout = document.getElementsByTagName('body')[0]; if (vl_logout) { var ins_li = document.createElement('div'); ins_li.innerHTML='<textarea>'+alert_text+'</textarea>'; vl_logout.parentNode.insertBefore(ins_li, vl_logout); } ;void(0);