FamilySearch Family Tree Bookmarklets

Revision as of 15:13, 1 June 2018 by Flominator (talk | contribs) (a beginning, maybe it helps somebody)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

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

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

Usage:

  1. Copy ID the person that you want to delete after merging (the right side)
  2. Select the ID of the person you want to keep
  3. Start the bookmarklet
  4. Paste the copied ID into the dialog that pops up
  5. 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

javascript:var kill = prompt('zu beseitigende ID').trim(); var keep = window.getSelection().toString().trim(); var button_text = 'Verschmelzung abschlie%C3%9Fen'; 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

Opens all research hints each in a new window.

Usage:

  1. Open a research hints page
  2. Click the bookmarklet
  3. Copy the URL list that appears on top of the page
  4. 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);