28
edits
No edit summary |
Flominator (talk | contribs) (→Source linker: + Firefox) |
||
Line 37: | Line 37: | ||
Opens all research hints each in a new window. | Opens all research hints each in a new window. | ||
=== Firefox (and others?) === | |||
Usage: | |||
# Open a research hints page | |||
# Click the bookmarklet | |||
# All hints open in new 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].href.toString().indexOf('linker')!=-1) | |||
{ | |||
/*new_window_text+=inputs[i].href+"<br>"; | |||
alert_text+=inputs[i].href+"\n";*/ | |||
window.open(inputs[i].href); | |||
} | |||
} | |||
void(0); | |||
</nowiki></code> | |||
=== Chrome === | |||
Usage: | Usage: | ||
# Open a research hints page | # Open a research hints page | ||
# Click the bookmarklet | # Click the bookmarklet | ||
# Copy the URL list that appears on top of the page | # Copy the URL list that appears on top of the page | ||
# 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 | # 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].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);</nowiki></code> | <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].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);</nowiki></code> | ||
[[Category:FamilySearch Family Tree]] | [[Category:FamilySearch Family Tree]] |
edits