Skip to content

Instantly share code, notes, and snippets.

@ba3r
Created October 27, 2009 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ba3r/219356 to your computer and use it in GitHub Desktop.
Save ba3r/219356 to your computer and use it in GitHub Desktop.
dynastree in: de, at, ch, us, uk, ca, fr, es, nl, pl
const
N = 'Michael Baer';
H = 'https://gist.github.com/synapsos';
L = 'GPL';
I = 'http://www.dynastree.com/favicon.ico';
S = '/search/query/';
DE = 'http://verwandt.de';
AT = 'http://verwandt.at';
CH = 'http://verwandt.ch';
US = 'http://dynastree.com';
UK = 'http://dynastree.co.uk';
CA = 'http://dynastree.ca';
FR = 'http://familleunie.fr';
ES = 'http://miparentela.com';
NL = 'http://verwant.nl';
PL = 'http://moikrewni.pl';
//verwandt.de 1.64
CmdUtils.CreateCommand({
names: ["verwandt.de", "fam-de"],
icon: I,
description: "Durchsucht verwandt.de nach Profilen und Namen",
help: "verwandt.de sucht in allen öffentlichen Profilen, sowie für angemeldte Nutzer auch in der eigenen Familie, nach dem eingegebenen oder markierten Namen. Als Vorschau erscheint die absolute Verteilung des Nachnamens in Deutschland, der Klick darauf führt zur interaktiven Karte.",
author: {name: N, homepage: H},
license: L,
homepage: DE,
arguments: [{role: 'object', nountype: noun_arb_text, label: "Name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"%25C3%25A4");
q = q.replace(/\ö/gi,"%25C3%25B6");
q = q.replace(/\ü/gi,"%25C3%25BC");
q = q.replace(/\ß/g,"%25C3%259F");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\é/gi,"%25C3%25A9");
var prev= DE+".karten.s3.amazonaws.com/" + q + "_absolute.png";
var page= DE+"/karten/absolut/" + q + ".html";
if (args.object.text.length == 0){ pblk.innerHTML = "Durchsuche verwandt.de"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Durchsuche verwandt.de nach <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Durchsuche verwandt.de nach <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='350' alt='Keine Kartenansicht gefunden.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( DE + S + args.object.text );
}
});
//verwandt.at 0.64
CmdUtils.CreateCommand({
names: ["verwandt.at", "fam-at"],
icon: I,
description: "Durchsucht verwandt.at nach Profilen und Namen",
help: "verwandt.at sucht in allen öffentlichen Profilen, sowie für angemeldte Nutzer auch in der eigenen Familie, nach dem eingegebenen oder markierten Namen. Als Vorschau erscheint die absolute Verteilung des Nachnamens in Österreich, der Klick darauf führt zur interaktiven Karte.",
author: {name: N, homepage: H},
license: L,
homepage: AT,
arguments: [{role: 'object', nountype: noun_arb_text, label: "Name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"%25C3%25A4");
q = q.replace(/\ö/gi,"%25C3%25B6");
q = q.replace(/\ü/gi,"%25C3%25BC");
q = q.replace(/\ß/g,"%25C3%259F");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\é/gi,"e");
var prev= AT+".karten.s3.amazonaws.com/" + q + "_absolute.png";
var page= AT+"/karten/absolut/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Durchsuche verwandt.at"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Durchsuche verwandt.at nach <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Durchsuche verwandt.at nach <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='450' alt='Keine Kartenansicht gefunden.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( AT + S + args.object.text );
}
});
//verwandt.ch 0.64
CmdUtils.CreateCommand({
names: ["verwandt.ch", "fam-ch"],
icon: I,
description: "Durchsucht verwandt.ch nach Profilen und Namen",
help: "verwandt.ch sucht in allen öffentlichen Profilen, sowie für angemeldte Nutzer auch in der eigenen Familie, nach dem eingegebenen oder markierten Namen. Als Vorschau erscheint die absolute Verteilung des Nachnamens in der Schweiz, der Klick darauf führt zur interaktiven Karte.",
author: {name: N, homepage: H},
license: L,
homepage: CH,
arguments: [{role: 'object', nountype: noun_arb_text, label: "Name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"%25C3%25A4");
q = q.replace(/\ö/gi,"%25C3%25B6");
q = q.replace(/\ü/gi,"%25C3%25BC");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\é/gi,"%25C3%25A9");
var prev= CH+".karten.s3.amazonaws.com/" + q + "_absolute.png";
var page= CH+"/karten/absolut/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Durchsuche verwandt.ch"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Durchsuche verwandt.ch nach <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Durchsuche verwandt.ch nach <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='450' alt='Keine Kartenansicht gefunden.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( CH + S + args.object.text );
}
});
//dynastree.com 0.64
CmdUtils.CreateCommand({
names: ["dynastree.com", "fam-us"],
icon: I,
description: "Searches dynastree.com for profiles and names",
help: "dynastree.com searches for names in all public profiles and, if you are logged in, in your own family, too. The preview map works just for surnames, click it for further information!",
author: {name: N, homepage: H},
license: L,
homepage: US,
arguments: [{role: 'object', nountype: noun_arb_text, label: "name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"-");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
var prev = "http://itsourtree.com.maps.s3.amazonaws.com/lastname_" + q + "_absolute.png";
var page = US +"/maps/detail/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Searches dynastree.com"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Searches dynastree.com for <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Searches dynastree.com for <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='450' alt='No map found.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( US + S + args.object.text );
}
});
//dynastree.co.uk 0.64
CmdUtils.CreateCommand({
names: ["dynastree.co.uk", "fam-uk"],
icon: I,
description: "Searches dynastree.co.uk for profiles and names",
help: "dynastree.co.uk searches for names in all public profiles and, if you are logged in, in your own family, too. The preview map works just for surnames, click it for further information!",
author: {name: N, homepage: H},
license: L,
homepage: UK,
arguments: [{role: 'object', nountype: noun_arb_text, label: "name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"-");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
var prev = UK+".maps.s3.amazonaws.com/lastname_" + q + "_absolute.png";
var page = UK+"/maps/detail/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Searches dynastree.co.uk"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Searches dynastree.co.uk for <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Searches dynastree.co.uk for <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='370' alt='No map found.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( US + S + args.object.text );
}
});
//dynastree.ca 0.64
CmdUtils.CreateCommand({
names: ["dynastree.ca", "fam-ca"],
icon: I,
description: "Searches dynastree.ca for profiles and names",
help: "dynastree.ca searches for names in all public profiles and, if you are logged in, in your own family, too. The preview map works just for surnames, click it for further information!",
author: {name: N, homepage: H},
license: L,
homepage: CA,
arguments: [{role: 'object', nountype: noun_arb_text, label: "name"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"-");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
var prev = "http://itsourtree.ca.maps.s3.amazonaws.com/" + q + "_absolute.png";
var page = CA+"/maps/detail/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Searches dynastree.ca"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Searches dynastree.ca for <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Searches dynastree.ca for <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='450' alt='No map found.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( CA + S + args.object.text );
}
});
//familleunie.fr 0.64
CmdUtils.CreateCommand({
names: ["familleunie.fr", "fam-fr"],
icon: I,
description: "Recherche dans familleunie.fr pour les profils et les noms",
help: "familleunie.fr recherche des noms dans les profils publics et, si vous êtes connecté, à votre propre famille aussi. L'aperçu ne fonctionne qu'avec les patronymes, cliquez dessus pour plus d'informations!",
author: {name: N, homepage: H},
license: L,
homepage: FR,
arguments: [{role: 'object', nountype: noun_arb_text, label: "nom"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\é/gi,"%25C3%25A9");
q = q.replace(/\à/gi,"a");
q = q.replace(/\è/gi,"e");
q = q.replace(/\ù/gi,"u");
q = q.replace(/\â/gi,"a");
q = q.replace(/\ê/gi,"e");
q = q.replace(/\î/gi,"%25C3%25AE");
q = q.replace(/\ô/gi,"o");
q = q.replace(/\û/gi,"u");
q = q.replace(/\ç/gi,"%25C3%25A7");
q = q.replace(/\æ/gi,"ae");
q = q.replace(/\œ/gi,"oe");
q = q.replace(/\ë/gi,"e");
q = q.replace(/\ï/gi,"i");
q = q.replace(/\ÿ/gi,"y");
var prev = FR+".cartes.s3.amazonaws.com/" + q + "_absolute.png";
var page = FR+"/cartes/detaille/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Recherche dans familleunie.fr"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Recherche dans familleunie.fr pour <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Recherche dans familleunie.fr pour <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='400' alt='Pas de carte trouvée.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( FR + S + args.object.text );
}
});
//miparentela.com 0.64
CmdUtils.CreateCommand({
names: ["miparentela.com", "fam-es"],
icon: I,
description: "Búsqueda de miparentela.com para los perfiles y nombres de",
help: "miparentela.com de búsqueda de nombres en los perfiles de público y si estás conectado, su propia familia también. La vista previa sólo funciona con los apellidos, haga clic para más información.",
author: {name: N, homepage: H},
license: L,
homepage: ES,
arguments: [{role: 'object', nountype: noun_arb_text, label: "nombre"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\á/gi,"a");
q = q.replace(/\é/gi,"e");
q = q.replace(/\í/gi,"i");
q = q.replace(/\ó/gi,"o");
q = q.replace(/\ú/gi,"u");
q = q.replace(/\ç/gi,"%25C3%25A7");
q = q.replace(/\ñ/gi,"n");
q = q.replace(/\à/gi,"a");
q = q.replace(/\è/gi,"e");
q = q.replace(/\ò/gi,"o");
q = q.replace(/\ï/gi,"i");
q = q.replace(/\?/gi,"l");
var prev = ES+".mapas.s3.amazonaws.com/" + q + "_absoluto.png";
var page = ES+"/mapas/detalles/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Búsqueda en miparentela.com"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Búsqueda en miparentela.com para <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Búsqueda en miparentela.com para <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='400' alt='Ningún mapa encontrado.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( ES + S + args.object.text );
}
});
//verwant.nl 0.64
CmdUtils.CreateCommand({
names: ["verwant.nl", "fam-nl"],
icon: I,
description: "Zoekt op verwant.nl naar profielen en namen",
help: "verwant.nl zoekt naar namen in alle openbare profielen en, als u ingelogd bent, in je eigen familie ook. De preview kaart werkt slechts voor familienamen, klik erop voor meer informatie!",
author: {name: N, homepage: H},
license: L,
homepage: NL,
arguments: [{role: 'object', nountype: noun_arb_text, label: "naam"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
var prev = NL+".kaarten.s3.amazonaws.com/" + q + "_absoluut.png";
var page = NL+"/kaarten/detail/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Zoeken in verwant.nl"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "Zoek in verwant.nl voor <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "Zoek in verwant.nl voor <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='380' alt='Geen kaart gevonden.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( NL + S + args.object.text );
}
});
//moikrewni.pl 0.64
CmdUtils.CreateCommand({
names: ["moikrewni.pl", "fam-pl"],
icon: I,
description: "Wyszukiwania moikrewni.pl profili i nazwy",
help: "Wyszukiwania moikrewni.pl publicznych profile, a jesli jestes zalogowany, czlonków rodziny za. Podglad dziala tylko z nazwiska, kliknij go o dalsze informacje!",
author: {name: N, homepage: H},
license: L,
homepage: PL,
arguments: [{role: 'object', nountype: noun_arb_text, label: "imie"}],
preview: function(pblk, args) {
var q = args.object.text.replace(/\s+/g,"%2B");
q = q.replace(/\ä/gi,"ae");
q = q.replace(/\ö/gi,"oe");
q = q.replace(/\ü/gi,"ue");
q = q.replace(/\ß/g,"ss");
q = q.replace(/\'/g,"%2527");
q = q.replace(/\c/gi,"c");
q = q.replace(/\n/gi,"n");
q = q.replace(/\ó/gi,"o");
q = q.replace(/\s/gi,"s");
q = q.replace(/\z/gi,"z");
q = q.replace(/\a/gi,"a");
q = q.replace(/\e/gi,"e");
q = q.replace(/\z/gi,"z");
q = q.replace(/\l/gi,"l");
var prev = "http://s3.amazonaws.com/12XN8SEM7ZEYVXRQQ702-maps-pl/" + q + "_kompletny.png";
var page = PL+"/mapa/kompletny/" + q + ".html";
if (args.object.text == ""){ pblk.innerHTML = "Wyszukiwania moikrewni.pl"; } else {
if (args.object.text.length < 2){ pblk.innerHTML = "moikrewni.pl szukaj <b>" + args.object.text + "</b>."; }
else { pblk.innerHTML = "moikrewni.pl szukaj <b>" + args.object.text + "</b>.<br><br><a href='" + page + "'><img src='" + prev + "' width='400' alt='Nie znaleziono map.' /></a>"; }
; }
},
execute: function( args ) {
Utils.openUrlInBrowser( PL + S + args.object.text );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment