28
edits
Flominator (talk | contribs) (→Source linker: updating FF, Chrome currently doesn't work) |
Flominator (talk | contribs) (→Firefox (and others?): making chrome work again) |
||
Line 60: | Line 60: | ||
void(0); | void(0); | ||
</nowiki></code> | </nowiki></code> | ||
=== Chrome === | === Chrome === | ||
Usage: | Usage: | ||
Line 68: | Line 67: | ||
# Paste it into the dialog created by the [https://chrome.google.com/webstore/detail/bulk-url-opener-extension/hgenngnjgfkdggambccohomebieocekm Bulk URL Opener Extension] or anything similiar in order to open the urls in new tabs/windows | # Paste it into the dialog created by the [https://chrome.google.com/webstore/detail/bulk-url-opener-extension/hgenngnjgfkdggambccohomebieocekm Bulk URL Opener Extension] or anything similiar in order to open the urls in new tabs/windows | ||
<code><nowiki>javascript: var new_window_text =""; var alert_text =""; var inputs = document.getElementsByTagName('a'); for(var i=0;i<inputs.length;i++) { if (inputs[i]. | <code><nowiki> | ||
javascript: | |||
var linkPrefix = 'https://www.familysearch.org/search/linker?icid=fs-attach&ark='; | |||
var new_window_text =""; | |||
var alert_text =""; | |||
var inputs = document.getElementsByTagName('a'); | |||
for(var i=0;i<inputs.length;i++) | |||
{ | |||
if (inputs[i].dataset.item != null && inputs[i].dataset.item.toString().indexOf('ark')!=-1 && inputs[i].dataset.item.toString().indexOf('collection')==-1) | |||
{ | |||
var ark = inputs[i].dataset.item.toString().replace('https://familysearch.org/', ''); | |||
new_window_text+= linkPrefix + ark+"<br>"; | |||
alert_text+= linkPrefix + ark+"\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); | |||
</nowiki></code> | |||
[[Category:FamilySearch Family Tree]] | [[Category:FamilySearch Family Tree]] |
edits