userscript
Geni Profile Helper
Makes Geni's search results open the profile and family tree directly, and shows the full list of names where Geni cuts it short with "and 12 others".
You need a userscript manager first, like Tampermonkey (Chrome, Edge, Firefox, Safari). On Android, use it in the Quetta or Kiwi browser. Once it's installed, it updates itself from this site.
Have it from Greasy Fork? Click Install here once. It replaces that copy (your settings stay), and from then on updates come from this site.
Two small fixes for searching on Geni:
- Search results: where Geni sends you to its sign-up page, the name links straight to the person’s profile instead, and the row gets Open Tree and Show List links.
- Long name lists: wherever Geni shortens a list to “… and 12 others”, it shows every name right away, without clicking.
Works on search results, profiles, merge (compare) pages and your Geni home page, including parts of the page that load later.
Based on an earlier script by nikku.
Not working, or have an idea for it? Tell me.
Version historylatest v2.7.4 · Nov 25, 2026
- v2.7.4 · Nov 25, 2026Also shows the full name lists on merge (compare) pages.
- v2.7.3 · May 25, 2026Latest version from Greasy Fork. Now installs and updates from this site.
Source code
View the source (5 KB)
Show it here
// ==UserScript==
// @name Geni Profile Helper v2
// @namespace knaperyaden.org
// @license MIT
// @version 2.7.4
// @description Go to profiles and trees from search results; expand truncated name lists
// @author Knaper Yaden (based on original work by nikku)
// @match https://www.geni.com/search*
// @match https://www.geni.com/people/*
// @match https://www.geni.com/home*
// @match https://www.geni.com/merge/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=geni.com
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
// ── Search results: fix locked profile links ──────────────────────────────
function fixLockedProfiles() {
var trs = document.querySelectorAll('.sortable_table > tbody > tr');
trs.forEach(function(tr) {
if (tr.dataset.profileFixed) return;
tr.dataset.profileFixed = 'true';
var pid = tr.querySelector('.similar_profiles').id.replace('similar_profiles_link_', '');
var profile = tr.querySelector('.profile-grid-area > div > a');
if (profile.href.includes('/signup?')) {
var peopleUrl = '/people/-/' + pid;
profile.removeAttribute('onclick');
profile.href = peopleUrl;
var manager = tr.querySelector('.manager-grid-area > a');
if (manager) {
manager.removeAttribute('onclick');
manager.removeAttribute('href');
}
var name = tr.querySelector('.name-grid-area > div > span > a');
name.removeAttribute('onclick');
name.href = peopleUrl;
name.classList.add('tipped-tip');
name.setAttribute('bypass_newsfeed_helper', 'true');
name.setAttribute('data-offset-x', '-10');
name.setAttribute('data-offset-y', '-10');
name.setAttribute('data-position', 'topleft');
name.setAttribute('data-remote-data', '/profile/hovercard');
name.setAttribute('data-remote-params', '{id:' + pid + '}');
name.setAttribute('data-show-delay', '800');
name.setAttribute('data-skin', 'hovercard');
name.setAttribute('data-template', 'hover.profile');
var actionList = tr.querySelector('.action-grid-area > .action_list');
if (actionList) {
actionList.innerHTML = '<li class="first"><a href="/family-tree/index/' + pid + '" draggable="false" ' +
'show_icon="true"><span><img src="https://www.geni.com/images/icn_family_tree.gif"> Open Tree' +
'</span></a></li><li><a href="/list?focus_id=' + pid + '" draggable="false" show_icon="true"><span>' +
'<img src="https://www.geni.com/images/icn_settings.gif"> Show List</span></a></li>';
}
}
});
}
// ── Expand truncated name lists ("X others") ──────────────────────────────
function expandNames(root) {
root = root || document;
// Replace "N others" links with the full name list from their title attribute
Array.from(root.querySelectorAll('a'))
.filter(a => /\b\d+\s+others\b/i.test(a.textContent) && a.title && a.title.indexOf(',') !== -1)
.forEach(a => {
const textNode = document.createTextNode(' ' + a.title.trim());
a.replaceWith(textNode);
});
// Expand toggler-bound elements (mirror what clicking "X others" does natively)
root.querySelectorAll('a[data-tr8n-toggler-bound]').forEach(a => {
const spec = a.getAttribute('data-tr8n-toggler-bound');
if (!spec) return;
const [hideId, showId] = spec.split(',').map(s => s.trim());
// Only process "X others" links, not "« less" links
if (!/\d+\s+others?\b/i.test(a.textContent)) return;
const showEl = showId ? document.getElementById(showId) : null;
const hideEl = hideId ? document.getElementById(hideId) : null;
if (showEl) {
showEl.style.display = 'inline';
}
if (hideEl) {
hideEl.style.display = 'none';
}
});
}
// ── MutationObserver: re-run on dynamically added content ─────────────────
function onMutation(mutations) {
for (const mutation of mutations) {
if (!mutation.addedNodes.length) continue;
for (const node of mutation.addedNodes) {
if (node.nodeType !== Node.ELEMENT_NODE) continue;
expandNames(node);
fixLockedProfiles();
}
}
}
const observer = new MutationObserver(onMutation);
observer.observe(document.body, { childList: true, subtree: true });
// ── Initial run ───────────────────────────────────────────────────────────
fixLockedProfiles();
expandNames();
})();Free to use, share and change (MIT license).
