-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsoleScript
More file actions
20 lines (17 loc) · 869 Bytes
/
consoleScript
File metadata and controls
20 lines (17 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const myInterval = setInterval(myTimer, 4000);
function myTimer() {
var rcrdType0 = document.getElementsByClassName("rtHeader")[0].childNodes[0].childNodes[0].title;
var rcrdType1 = document.getElementsByClassName("rtHeader")[1].childNodes[0].childNodes[0].title;
var rcrdType2 = document.getElementsByClassName("rtHeader")[2].childNodes[0].childNodes[0].title;
var rcrdType3 = document.getElementsByClassName("rtHeader")[3].childNodes[0].childNodes[0].title;
// console.log(':::'+rcrdType0);
// console.log(':::'+rcrdType1);
// console.log(':::'+rcrdType2);
// console.log(':::'+rcrdType3);
if(rcrdType0=='Your_RecordType_Label' || rcrdType1=='Your_RecordType_Label' || rcrdType2=='Your_RecordType_Label' || rcrdType3=='Your_RecordType_Label'){
clearInterval(myInterval);
}
else{
document.getElementById("plaNextLink").click();
}
}