forked from FlominatorTM/WikiTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatricula.js
More file actions
22 lines (16 loc) · 849 Bytes
/
Copy pathMatricula.js
File metadata and controls
22 lines (16 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
javascript:
var citation = "Matricula online";
var breadCrumbList = document.getElementsByClassName('breadcrumb')[0];
for (var i=1; valNode = breadCrumbList.getElementsByTagName("a")[i]; i++)
{
citation += " > " + valNode.innerText;
}
var infoTable = document.getElementsByClassName("table table-register-data")[0];
var signature = infoTable.getElementsByTagName("td")[1].innerText;
var bookType = infoTable.getElementsByTagName("td")[2].innerText;
var from = infoTable.getElementsByTagName("td")[3].innerText;
var until = infoTable.getElementsByTagName("td")[4].innerText;
var imageName = document.getElementsByClassName("active")[2].innerText.replace("_", " ");
citation+= " > " + bookType + " (" + from + " – " + until + ", " + signature + ") > picture [" + window.location + " " + imageName +"], #";
prompt("", citation);
;void(0);